Repository navigation
Conversation
Owner
|
The reviewed head passed Windows and Linux CI, but GitHub reports a merge conflict against current main. Please rebase and retain the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #3224, #2935
Summary
Completes the GFX10 D16 sub-DWORD LDS family alongside
ds_read_u16_d16/ds_read_u16_d16_hi(0xa6,0xa7) ingfx1013_compute_irand the direct C++ compute frontend:0xa0(ds_write_b8_d16_hi): writes(v[data0] >> 16) & 0xffto LDS byte address.0xa1(ds_write_b16_d16_hi): writes(v[data0] >> 16) & 0xffffto even LDS halfword address (skipping odd effective addresses, matchingds_write_b16).0xa2(ds_read_u8_d16) /0xa3(ds_read_u8_d16_hi): zero-extends 1 LDS byte to 16 bits into the low/high half ofv[dst], preserving the untouched 16-bit half.0xa4(ds_read_i8_d16) /0xa5(ds_read_i8_d16_hi): sign-extends 1 LDS byte to 16 bits into the low/high half ofv[dst], preserving the untouched 16-bit half.Changes
src/gfx1013_compute_ir.handsrc/gfx1013_compute_ir.cpp:bool store_d16_hitoLocalDataAccessand decode0xa0..0xa5indecode_local_data.v[data0]right by 16 bits inlower_ldswhenstore_d16_hiis set; mask signedfieldto 16 bits and clear the full 16-bit destination half (~(0xffffu << bit)) whenread_d16is set.src/gfx1013_direct_compute.inl:0xa6/0xa7DXIL bit-for-bit unchanged).tests/native_lds_subword_read_check.py:0xa2..0xa5alongside0xa6,0xa7,0x39..0x3c; update the unsupported-opcode refusal control from0xa2(162) to0xa8(168).0xa2,0xa3,0xa4,0xa5(including sign-extension of0xb3->0xffb3with preserved high/low halves),0xa0(ds_write_b8_d16_hi),0xa1(ds_write_b16_d16_hi), and the odd-offset skip control for0xa1.Verification
f4882407(based onmain158ef794)10.0.26300.9974), MSVC19.44.35230, Windows SDK / DXC10.0.26100.0, NVIDIA GeForce RTX 5080 (10de:2c02, driver32.0.16.2140), Microsoft Basic Render Driver (10.0.26100.9818), D3D12 debug layer enabled (debug_errors=0 debug_warnings=0).Commands and results
dev(Debug): 92/92 Passed (89/89 gfx1013_compute_ir_*unit + mutation tests PASS;native_lds_subword_read_controlsPASS;native_lds_subword_read_hardwarePASS in 3.92 s on RTX 5080, all 10 cases × 336 texture words matched;native_lds_subword_read_warpSkipped (77) —shader wave32 fixture requires SM 6.6, WaveOps, and a 32-lane wave).release(/O2):gfx1013_compute_ir_all(83/83) Passed,native_lds_subword_read_controlsPassed,native_lds_subword_read_hardwarePassed (3.72 s on RTX 5080),native_lds_subword_read_warpSkipped (77).Fail-first / mutation control
Disabling
if (op.store_d16_hi)insrc/gfx1013_direct_compute.inland rebuildingcompile_dxilfailsnative_lds_subword_read_hardware(exit 8) on the0xa0case (expected=654300a2 actual=654300c0).Pure-Python checks
Scope note
This verifies source-built gfx1013 LDS subword compute fixtures through
compile_dxilandoffscreen_checkon the RTX 5080 and WARP; it does not establish full-title startup or frame rate.AI-assisted.