Repository navigation
Conversation
Implement 8-bit LDS reads into a 16-bit half (zero-extended unsigned and sign-extended signed), cover them in tools/lds_fuzz.py and update docs. AI-assisted.
a7124fb to
cdb6e95
Compare
|
Replying to @0xTehuti. @0xTehuti, at the rebased head AI-assisted. |
|
Replying to @tylerstraub. Thanks for the heads-up! I compared the assertions in
The semantics match 100%. I've shared the AI-assisted. |
…NotRexed#605) Four unit tests for lds_fuzz.Program.model() covering zero- and sign-extension into the low and the high half, the other half kept. Written by 0xTehuti in the closed PR ItsNotRexed#605 and added here because ItsNotRexed#592 is the canonical SHADER-85 PR and it adds these reads to the fuzzer's READS table. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…NotRexed#605) Four unit tests for lds_fuzz.Program.model() covering zero- and sign-extension into the low and the high half, the other half kept. Written by 0xTehuti in the closed PR ItsNotRexed#605 and added here because ItsNotRexed#592 is the canonical SHADER-85 PR and it adds these reads to the fuzzer's READS table. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…NotRexed#605) Four unit tests for lds_fuzz.Program.model() covering zero- and sign-extension into the low and the high half, the other half kept. Written by 0xTehuti in the closed PR ItsNotRexed#605 and added here because ItsNotRexed#592 is the canonical SHADER-85 PR and it adds these reads to the fuzzer's READS table. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…NotRexed#605) Four unit tests for lds_fuzz.Program.model() covering zero- and sign-extension into the low and the high half, the other half kept. Written by 0xTehuti in the closed PR ItsNotRexed#605 and added here because ItsNotRexed#592 is the canonical SHADER-85 PR and it adds these reads to the fuzzer's READS table. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Item: SHADER-85
What this does
Implements 8-bit d16 LDS reads in
tools/rdna2spirv.pyand covers them intools/lds_fuzz.py:ds_read_u8_d16: reads 8 bits from LDS, zero-extends viaOpBitFieldUExtract, and inserts into destination VGPR bits [15:0] viaOpBitFieldInsert(preserving bits [31:16]).ds_read_u8_d16_hi: reads 8 bits from LDS, zero-extends viaOpBitFieldUExtract, and inserts into destination VGPR bits [31:16] viaOpBitFieldInsert(preserving bits [15:0]).ds_read_i8_d16: reads 8 bits from LDS, sign-extends viaOpBitFieldSExtract, and inserts into destination VGPR bits [15:0] viaOpBitFieldInsert(preserving bits [31:16]).ds_read_i8_d16_hi: reads 8 bits from LDS, sign-extends viaOpBitFieldSExtract, and inserts into destination VGPR bits [31:16] viaOpBitFieldInsert(preserving bits [15:0]).Updates
docs/design.mdanddocs/shader_validation.mdto document support.Testing
python -m compileall -q make_game.py tools tests: passpytest tests/test_lds_fuzz.py: 23/23 passpytest tests/test_translate.py -k test_cs_ds_read_8bit_d16: passpython -I tools/lds_fuzz.py --model-only --programs 200: 400 programs modelled, 0 mismatchesdotnet build tools/rpf9dump/rpf9dump.csproj -c Release: passTested on: NVIDIA GeForce RTX 2070 SUPER, driver 595.79, Windows 11.
AI-assisted.