Commit Graph

2 Commits

Author SHA1 Message Date
fe21bbd0cc vk_pc_tail: destroy the --pc-tail-ubo block so vk_bindless_test leaks nothing
PcTail::create made two set layouts, a descriptor pool with its set, a
buffer and its memory, and kept the pool, buffer and memory only in
locals. vk_bindless_test destroys everything before vkDestroyDevice, so
with LEONIDA_PC_TAIL_UBO=1 and LEONIDA_VK_VALIDATION=1 the validation
layer reported the six leaked objects (VUID-vkDestroyDevice-device-05137)
and ps_tex failed with "1 validation errors" although every pixel was
right.

Keep the handles in PcTail, add destroy(), and call it in
vk_bindless_test's teardown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 19:18:52 -06:00
0ec464b0e1 GPU tests: bind the --pc-tail-ubo block, so 128-byte push-constant devices run the tests
With LEONIDA_PC_TAIL_UBO=1, build.py and run_gpu_tests.py translate with --pc-tail-ubo, and the test
programs (vk_compute_test, vk_store_test, vk_harness, vk_texture_test, vk_sampler_test, vk_bindless_test)
declare and push 128 bytes and, when a stage declares set 1, bind the tail block there
(runtime/test/vk_pc_tail.h: a host-visible buffer with one slot per dispatch or draw, bound as a dynamic
uniform buffer). vk_harness refuses --mesh-compute with the flag (exit 77): mesh_compute_vs.py's vertex
shader still reads its address from push constants. Without the variable nothing changes.

Step 2 of the uniform-buffer tail claimed in #1902.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 18:48:05 +02:00