upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/vk_harness.cpp
diff options
context:
space:
mode:
authorTreXito <81475944+TreXito@users.noreply.github.com>2026-11-23 15:47:22 +0000
committerTreXito <81475944+TreXito@users.noreply.github.com>2026-11-23 15:47:22 +0000
commitb721585aae2efb5e78cf7ee2467fe8c4d5e0ca35 (patch)
tree62803d5697e35182026fc910b64827a108ffc819 /runtime/test/vk_harness.cpp
parentc6f15b16283081c72123e61ca08cf5eb83e301e2 (diff)
parent6de3970e15dc2ef8542ea1a289105736e2241624 (diff)
Merge remote-tracking branch 'origin/main' into exe/import-fail-fast
# Conflicts: # docs/README.md
Diffstat (limited to 'runtime/test/vk_harness.cpp')
-rw-r--r--runtime/test/vk_harness.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/runtime/test/vk_harness.cpp b/runtime/test/vk_harness.cpp
index 836b198e6..23d58bc70 100644
--- a/runtime/test/vk_harness.cpp
+++ b/runtime/test/vk_harness.cpp
@@ -36,6 +36,7 @@
36#include "vk_pc_tail.h" 36#include "vk_pc_tail.h"
37#include "../src/descriptor_table.h" 37#include "../src/descriptor_table.h"
38#include "../src/gfx10_descriptors.h" 38#include "../src/gfx10_descriptors.h"
39#include "spirv_capability.h"
39 40
40#include <cctype> 41#include <cctype>
41#include <cstddef> 42#include <cstddef>
@@ -507,9 +508,18 @@ int main(int argc, char** argv) {
507 } 508 }
508 feats.shaderFloat64 = VK_TRUE; 509 feats.shaderFloat64 = VK_TRUE;
509 } 510 }
510 if (need_heap || mesh_compute) { 511 // shaderInt64 only when a stage has 64-bit integers. Heap and --mesh-compute addresses are 64-bit, but rdna2spirv.py
511 if (!f2q.features.shaderInt64) { std::fprintf(stderr, "unsupported: 64-bit addresses need shaderInt64\n"); return 77; } 512 // builds them from 32-bit pairs unless the shader also does 64-bit arithmetic (SHADER-423), so the module decides,
512 feats.shaderInt64 = VK_TRUE; // heap and --mesh-compute output addresses are 64-bit 513 // not VKH_HEAP (TEST-468).
514 bool needs_int64 = leonida::vk_test::needs_shader_int64(fs_code);
515 for (const char* p : std::initializer_list<const char*>{argv[1], mesh_vs_path, gs_path})
516 if (p && !needs_int64) needs_int64 = leonida::vk_test::needs_shader_int64(read_spv(p));
517 if (needs_int64) {
518 if (!f2q.features.shaderInt64) {
519 std::fprintf(stderr, "unsupported: a stage declares Int64 and the device has no shaderInt64\n");
520 return 77;
521 }
522 feats.shaderInt64 = VK_TRUE;
513 } 523 }
514 if (tex_rgba_path) { 524 if (tex_rgba_path) {
515 if (!f2q.features.shaderSampledImageArrayDynamicIndexing) { 525 if (!f2q.features.shaderSampledImageArrayDynamicIndexing) {