shader: accept GLC and DLC cache flags on direct read-only image ops #3242

Closed
opened 2026-11-28 01:25:45 +00:00 by legacy-code-archaeologist · 0 comments
legacy-code-archaeologist commented 2026-11-28 01:25:45 +00:00 (Migrated from github.com)
Contributor

Imported from R0Y00/Xbox2Windows. Originally posted by legacy-code-archaeologist on 2026-11-28T01:25:45Z.


DirectCompute::image_io() (src/gfx1013_direct_compute.inl) currently refuses all 0x3e0c0u MIMG word 0 bits with "direct image opcode or descriptor modifiers" (Rank 8 in #3224: 54 shaders, 233,735 dispatches).

In GFX10 MIMG word 0, bit 13 (0x2000, GLC) and bit 7 (0x0080, DLC) — alongside bit 25 (SLC, already outside the mask) — are cache-policy hints that do not change read-only texel fetch/sample/gather/dimension results. Accepting GLC and DLC on read-only image ops (image_load*, image_sample*, image_gather4*, image_getlod, image_getresinfo) while keeping image_store*, image_atomic_*, R128 (0x8000), TFE (0x10000), LWE (0x20000), and reserved bits (0x4040 / word 1 0x3c000000) refused increases direct Compute and Pixel DXIL coverage.

Refs #2935
Refs #3224

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6657205722 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/issues/3242). Originally posted by [legacy-code-archaeologist](https://github.com/legacy-code-archaeologist) on 2026-11-28T01:25:45Z. --- `DirectCompute::image_io()` (`src/gfx1013_direct_compute.inl`) currently refuses all `0x3e0c0u` MIMG word 0 bits with `"direct image opcode or descriptor modifiers"` (Rank 8 in #3224: 54 shaders, 233,735 dispatches). In GFX10 MIMG word 0, bit 13 (`0x2000`, `GLC`) and bit 7 (`0x0080`, `DLC`) — alongside bit 25 (`SLC`, already outside the mask) — are cache-policy hints that do not change read-only texel fetch/sample/gather/dimension results. Accepting `GLC` and `DLC` on read-only image ops (`image_load*`, `image_sample*`, `image_gather4*`, `image_getlod`, `image_getresinfo`) while keeping `image_store*`, `image_atomic_*`, `R128` (`0x8000`), `TFE` (`0x10000`), `LWE` (`0x20000`), and reserved bits (`0x4040` / word 1 `0x3c000000`) refused increases direct Compute and Pixel DXIL coverage. Refs #2935 Refs #3224 AI-assisted.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows#3242
No description provided.