mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 17:08:38 +00:00
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.
4 lines
212 B
NASM
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
|