Repository navigation
docs/design: contract row for the image fetch status VGPR (tfe/lwe), a resident read leaves it unchanged (SHADER-1266-DESIGN-ROW) - #1067
Conversation
…a resident read leaves it unchanged (SHADER-1266)
|
Reviewed 2981ead: ran |
Claimed in the coordination issue as: SHADER-1266-DESIGN-ROW (#14 (comment)).
This is the follow-up @aslan2142 named when merging #892: a
docs/design.mdcontract row saying that a residentimage_loadwithtfeleaves the status VGPR unchanged, so the zeroing change does not come back.The new row, Image fetch status (
tfe,lwe) (SHADER-1266), comes right after "Typed image loads" and records:vdata[n], with n the data VGPR count, packed two per VGPR underd16), that the translator writes nothing there, and thatread_before_write_vgprsstill counts it as a destination;SIISelLoweringreasoning, from rdna2spirv: zero the tfe/lwe status VGPR on image_load and image_load_mip (SHADER-1266) #98 and tests: correct resident TFE status expectations (SHADER-1266) #892;(v8 ^ 0x3e8) | (v12 ^ 0x7d0)), and the GPUs and drivers they pass on in tests: correct resident TFE status expectations (SHADER-1266) #892;Unsupportedwithtfe/lwe, read fromtools/rdna2spirv.py:image_store,a16gather/sample with offsets,a16image_get_lod, 3Dimage_sample_d/_cl, and the d16 3Dimage_load_mip.Tested: every
tests/test_docs_*.pyandtests/test_i18n_index.pypasses (the docs-only CI set), andscripts/check_no_game_data.py docs/design.mdis clean. Docs only, no game files. AI-assisted.