upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_bindless_dimensions_test.cpp
diff options
context:
space:
mode:
authorBloh09 <104168236+Bloh09@users.noreply.github.com>2026-11-28 15:32:39 -0800
committerBloh09 <104168236+Bloh09@users.noreply.github.com>2026-11-28 17:31:05 -0800
commit1d582d5c8b80a982931b75cf75c26338b9ac4dab (patch)
treeed7345f03759253c0791f99069425287b0811ae7 /runtime/test/vk_bindless_dimensions_test.cpp
parenta5314101cc096b49800437bc253e866c00580332 (diff)
runtime: vk_bindless_dimensions skips a device whose sized arrays hold fewer than its live images (CI-BINDLESS-DIMENSIONS-SMALL-DEVICE)
Diffstat (limited to 'runtime/test/vk_bindless_dimensions_test.cpp')
-rw-r--r--runtime/test/vk_bindless_dimensions_test.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/test/vk_bindless_dimensions_test.cpp b/runtime/test/vk_bindless_dimensions_test.cpp
index 3da8370d6..2b7863555 100644
--- a/runtime/test/vk_bindless_dimensions_test.cpp
+++ b/runtime/test/vk_bindless_dimensions_test.cpp
@@ -404,6 +404,18 @@ int main() {
404 return 77; 404 return 77;
405 } 405 }
406 406
407 // The limits above are only the sampled-image ones; the sizing also answers to the resource and set limits (an
408 // Apple Paravirtual device under MoltenVK stops at the 256 defaults). Below live_images there is nothing to test.
409 for (const ImageDimension dimension :
410 {ImageDimension::dim_1d, ImageDimension::dim_2d_array, ImageDimension::dim_3d}) {
411 const std::uint32_t sized = features.counts[bindless::sampled_binding(dimension)];
412 if (sized <= live_images) {
413 std::printf("unsupported: the device's limits size the %s array at %u indices, too few for %u images\n",
414 name(dimension), sized, live_images);
415 return 77;
416 }
417 }
418
407 const std::vector<std::uint32_t> code = load_spirv(LEONIDA_TEST_BINDLESS_DIMENSIONS_SPV); 419 const std::vector<std::uint32_t> code = load_spirv(LEONIDA_TEST_BINDLESS_DIMENSIONS_SPV);
408 EXPECT(!code.empty()); 420 EXPECT(!code.empty());
409 const std::uint32_t max_layers = properties.properties.limits.maxImageArrayLayers; 421 const std::uint32_t max_layers = properties.properties.limits.maxImageArrayLayers;