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:
authorVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 19:08:54 +0100
committerVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 19:08:54 +0100
commit3af42c619253941610d9809e8a28a07e8dfdfdf2 (patch)
treea675793195f8bc69c3caebb0e9614ecfb65e1c4c /runtime/test/vk_harness.cpp
parente6af0a0931639ff33cdd4a28289da984f194c87e (diff)
parentec8ec4c9a46c6623f1a9c125afd3566da97f1e0c (diff)
merge: preserve upstream changes alongside the asset fix
Diffstat (limited to 'runtime/test/vk_harness.cpp')
-rw-r--r--runtime/test/vk_harness.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/test/vk_harness.cpp b/runtime/test/vk_harness.cpp
index a2491b64b..fe9ae194a 100644
--- a/runtime/test/vk_harness.cpp
+++ b/runtime/test/vk_harness.cpp
@@ -500,7 +500,10 @@ int main(int argc, char** argv) {
500 stages[2].pNext = &reqSg; 500 stages[2].pNext = &reqSg;
501 else if (!mesh && !gs_tested && (sgProps.requiredSubgroupSizeStages & VK_SHADER_STAGE_FRAGMENT_BIT)) 501 else if (!mesh && !gs_tested && (sgProps.requiredSubgroupSizeStages & VK_SHADER_STAGE_FRAGMENT_BIT))
502 stages[1].pNext = &reqSg; 502 stages[1].pNext = &reqSg;
503 if (stages[1].pNext == &reqSg) std::fprintf(stderr, "fragment subgroup size: %u\n", req_sg); 503 // A device with one subgroup size runs every stage at it, required or not (AMD GCN: 64, with only COMPUTE
504 // in requiredSubgroupSizeStages), so the fragment stage of a plain draw already has the size asked for.
505 const bool fixed = !mesh && !gs_tested && sgProps.minSubgroupSize == sgProps.maxSubgroupSize;
506 if (stages[1].pNext == &reqSg || fixed) std::fprintf(stderr, "fragment subgroup size: %u\n", req_sg);
504 } else if (req_sg > 0) { 507 } else if (req_sg > 0) {
505 std::fprintf(stderr, "fragment subgroup size: %u not available\n", req_sg); 508 std::fprintf(stderr, "fragment subgroup size: %u not available\n", req_sg);
506 } 509 }