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

Closed
opened 2026-11-28 01:31:53 +00:00 by github-bot · 0 comments
Owner

@⁠legacy-code-archaeologist on GitHub · 2026-11-28 01:25 UTC · original

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 #3226: 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 #3226

AI-assisted.

**@⁠legacy-code-archaeologist** on GitHub · 2026-11-28 01:25 UTC · [original](https://github.com/R0Y00/Xbox2Windows/issues/3242) `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 #3226: 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 #3226 AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 01:31:54 +00:00
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/R0Y00--Xbox2Windows#3244
No description provided.