Fix what the merge round broke: query_heap_type's lock and #1207's V#

- vulkan_backend.h: #1212's query_heap_type locked mutex_, which VulkanContext no longer has; query_pools_ is
  guarded by resource_mutex_ (add/remove take it unique), so the lookup takes it shared. The runtime didn't build.
- test_salu64_bitwise_data (#1207): its wave64 store went through a V# with word3 = 0 (OOB_SELECT 0, stride 0),
  out of range since #1104; it now uses the raw-buffer word3 the other semantic tests use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ItsNotRexed
2026-11-22 03:45:19 -05:00
parent 4f2b8877f0
commit 426023a585
2 changed files with 2 additions and 2 deletions

View File

@ -746,7 +746,7 @@ public:
}
// The heap's d3d12_query_heap type, or ~0u for a heap that is not registered.
std::uint32_t query_heap_type(QueryHeapId id) {
std::lock_guard lock(mutex_);
std::shared_lock lock(resource_mutex_); // query_pools_ is guarded by resource_mutex_, like add/remove
const auto it = query_pools_.find(id);
return it == query_pools_.end() ? ~0u : it->second.heap_type;
}

View File

@ -605,7 +605,7 @@ class LaneMaskPreservationTests(unittest.TestCase):
64,
64,
inputs_for=lambda i: {"%wg_id": (0, 0, 0), "%local_id": (i, 0, 0), "%sg_lane": i},
push_constants=[0, 0, 0x1000, 0] + [0] * 28,
push_constants=[0, 0, 0x1000, 0x31016FAC] + [0] * 28,
memory={},
)
self.assertEqual(