Files
mandy/tests/semantic/fixtures/packed_mip_load_2d.asm
Vonsek c7b6136446 fix(shader): read packed coordinates on explicit 2D mip loads
GFX10 A16 packs the unsigned texel position into one VGPR and the mip level into the low half of the next one. The existing typed fetches can consume these addresses for both ordinary and packed results.
2026-11-22 17:35:25 +01:00

4 lines
212 B
NASM

; Packed address words contain Y:X and padding:mip, low half first.
image_load_mip v[0:3], v[8:9], s[0:7] dmask:0xf dim:SQ_RSRC_IMG_2D a16
image_load_mip v0, [v18,v5], s[0:7] dmask:0x9 dim:SQ_RSRC_IMG_2D a16 d16