upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorabilliontokens <39147239+abilliontokens@users.noreply.github.com>2026-11-22 05:44:25 -0800
committerabilliontokens <39147239+abilliontokens@users.noreply.github.com>2026-11-22 07:12:57 -0800
commit4e7bd89e92eaa6432a26871c6692d55aa9919501 (patch)
treed4dafd7eb1ddd5a5f41cf2b6b22321f1124ae855 /runtime/src/thread_stacks.cpp
parent6a6704df1592e1dc4a3215ddf1423a78adb52045 (diff)
rdna2spirv: coherent image accesses (glc) read and write Coherent storage views
- On GFX10 a device-scope load is `glc dlc` and a device-scope store `glc` (Mesa ac_get_hw_cache_flags sets exactly these bits for ACCESS_COHERENT). The 10 POPS pixel shaders read-modify-write their ordered images that way, but a glc image_load was translated as a read of the sampled array (no coherent form in SPIR-V) and no storage view was Coherent, so under the fragment-shader interlock a read could miss the previous fragment's store. - A glc image_load now reads the storage view the stores write (OpImageRead, StorageImageReadWithoutFormat, class picked from the T# FORMAT as for stores); a shader with a glc image load or store decorates its storage views Coherent. Every other image_load keeps SHADER-151's sampled path (byte-identical output). - glc on a sampled read (image_sample*, image_gather*, image_load_mip) or on a dimension without storage views is Unsupported instead of silently non-coherent; dlc alone (CU scope) stays non-coherent. - tests/semantic/test_image_coherent.py (real translator; 7 of 10 fail on the old one) and a docs/design.md row.
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions