upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/xma_decoder/tests/ffi_cpp_smoke.cpp
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-11-25 00:41:13 +0000
committerClaude <noreply@anthropic.com>2026-11-25 00:42:10 +0000
commit979f713f9e65fce815b9e84a7ccafdcad9e73f77 (patch)
tree6d7e0cff16f9785ede04b4a131e606beafc8cc74 /runtime/xma_decoder/tests/ffi_cpp_smoke.cpp
parentb4b7756e8c64e7ae8b310288d543db0e428c0796 (diff)
rdna2spirv: translate image_gather4_c_lz and image_gather4_c_lz_o (SHADER-GATHER4-C-LZ)
Both were refused by name. Each is now one OpImageDrefGather at the base level on the sampled image and comparison sampler image_sample_c_lz uses (the compare function is the sampler's, built from S# DEPTH_COMPARE_FUNC): - address order after the optional offset dword: z-compare (f32, also under a16), s, t, and the slice of an array or cube (LLVM AMDGPUSampleVariant "{offset} {bias} {z-compare}" then the coordinates, no LOD for _lz; llvm-mc dword counts: 2D 3, array and cube 4, +1 for _o, 2/3/+1 under a16); - _lz is the base level (LLVM rewrites image_gather4_c_l with LOD <= 0 to IMAGE_GATHER4_C_LZ); - four comparisons (0.0 or 1.0) in the gather order image_gather4_lz uses, two VGPRs for d16; - _o: the signed 6-bit x [5:0], y [13:8] offset dword as image_gather4_lz_o reads it, an Offset operand (shaderImageGatherExtended). Refused with a message: 1D and 3D, dmask other than 0x1, tfe, lwe, unorm, glc and any other modifier. Mesa ACO and the RDNA2 ISA text were not readable; the row in docs/design.md says so. Not GPU-checked. tests/semantic/test_gather4_c_lz.py (16 tests): every operand of the emitted OpImageDrefGather traced back to its VGPR and half, for 2D, array and cube, _o and a16; result order; d16; stages; --texel-offset-fallback; the refusals; spirv-val on every form. AI-assisted. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Y7fbZYVY7EtLknWBZUfSLf
Diffstat (limited to 'runtime/xma_decoder/tests/ffi_cpp_smoke.cpp')
0 files changed, 0 insertions, 0 deletions