From 04a9f3a594c84426b990b5b5eeb80b687b8eb0ee Mon Sep 17 00:00:00 2001 From: Tauwni <102470988+Tauwni@users.noreply.github.com> Date: Thu, 26 Nov 2026 07:19:23 +0100 Subject: [PATCH] vk_bindless_test: ps_imgatomic skips the ps_tex mirror and 3D T# draws, and fails on a compare mismatch 9f98dcc61 put the mirror/alias and 3D-T#-read-by-a-2D-op checks before the atomic_mode block, so ps_imgatomic drew them with its own shader: every compare() missed (the target holds 1.0/0.25, not orange or zeros), the mismatches went to stderr, and the atomic return ignored them. The runner showed the first mismatch line as a PASS detail. Co-Authored-By: Claude Opus 5.5 --- runtime/test/vk_bindless_test.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/runtime/test/vk_bindless_test.cpp b/runtime/test/vk_bindless_test.cpp index dc33e7d918..f6bec05e0b 100644 --- a/runtime/test/vk_bindless_test.cpp +++ b/runtime/test/vk_bindless_test.cpp @@ -745,7 +745,7 @@ int main(int argc, char** argv) { // arrays at the T#'s own index. The index spaces are per dimension and dense, so slot N of one dimension // and a 2D-array image's mirror slot N coincide: the set records which image owns a mirror slot, not just // that it is used. - { + if (!atomic_mode) { // ps_tex only: these compares expect its texels in the target // A 2D-array image of two layers (layer 0 orange, layer 1 blue) with its own 2D-array and storage views // plus a 2D view of layer 0, which is what a mirror binds. The storage view puts the index in the // storage range, as in the index-space checks below. @@ -983,7 +983,7 @@ int main(int argc, char** argv) { // and index 1 of the 2D arrays is `stored_view` (its own image, a red texel). The entry says the index is // bound in the 3D arrays only, so the 2D read must use the 2D array's fallback and read zeros - not // `stored_view`, which is what indexing the instruction's array with the other dimension's index would do. - { + if (!atomic_mode) { // ps_tex only, as the mirror checks above EXPECT(stored_index == 1); VkImage volume = VK_NULL_HANDLE; VkImageView volume_view = VK_NULL_HANDLE; @@ -1199,7 +1199,8 @@ int main(int argc, char** argv) { std::printf("ps_imgatomic: %u validation errors\n", g_validation_errors); return 1; } - return wrong || bad_rt ? 1 : 0; + // A compare() above would be one of the ps_tex checks, which this shader cannot pass: count it. + return wrong || bad_rt || mismatches ? 1 : 0; } // A view that comes and goes before the set is flushed is never written: a texture created and destroyed