Recompiler: preserve the texture footprint for cubemap samples with explicit gradients #767
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#767
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@AkshatPal2007 on GitHub · 2026-11-24 04:52 UTC · original
The MIMG cube path in
emit.rsreduces two face-space gradients to one LOD and callsSampleLevel. An anisotropic sampler loses the direction of the footprint.HANDOFF.mdrecordsimage_sample_d(_cl)on cubemaps in a retail shader survey.On
64b3f35, a syntheticIMAGE_SAMPLE_Dkernel sampled a white column on a 32×32 face with an 8×1 texel footprint and a 16× anisotropic sampler. The cube returned 1.0, while the equivalent 2D-array slice returned 0.125 on the same RTX 4070 Laptop GPU (Windows 11, DXC 1.8.2502). Both views had one mip.I’m working on projecting the two gradients into direction space for native
TextureCubeArray.SampleGrad, including minimum LOD, and comparing both sampling paths in a GPU test. Retail visual impact has not been measured.AI use: Codex (gpt-6.2-astra) investigated the emitter, wrote and ran the synthetic reproduction, and drafted this issue.