upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.cpp
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-22 07:23:05 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-22 08:19:04 -0500
commit705a40bda920994f9198ad0166584142a19edc45 (patch)
tree5531640ed1af5a1034a6866a0f39e3ec9aeff022 /runtime/src/pe_loader.cpp
parenta0acd33d77babe67a28e398b2936a9f735a50f5d (diff)
Tests: a compute dispatch that samples through set 0 (d3d12_set0_compute_test)
Since #1489 the layer binds the device's bindless set at every dispatch as well as at every draw, but only the draw has a test (d3d12_m2_textured_test): d3d12_compute_test takes the binding-free index entry on purpose, and d3d12_descriptor_test samples through set 0 with a Vulkan pipeline of its own. This test covers the compute bind point through D3D12 alone: a compute PSO whose index entry lists set-0 bindings, two SRVs, bytes no view was made for, and a wrapping and a clamping sampler. Four dispatches of test/glsl/cs_set0_sample.comp (GLSL written to the translator's contract) load the T# and the S# from the descriptor tables, find them in the hash table and sample: the two textures texel for texel, the fallback image for the unknown bytes, and the right edge with the clamping sampler. A device without the bindless set refuses the PSO. Registered with ctest like its neighbours (exit 77 is a skip). With the vkCmdBindDescriptorSets call of the compute bind point removed from replay, this test fails (VUID-vkCmdDispatch-None-08600, on llvmpipe). Checked with a mingw-w64 build under Wine on llvmpipe, an RDNA2 integrated GPU and an RX 7900 XTX (RADV), with the validation layer: exact, no validation errors. Not built with MSVC. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions