From 8b1a44f93fd8add5f88c41fc2ff04f35612685a1 Mon Sep 17 00:00:00 2001 From: Ahmed Hesham <117350656+ahesham-arm@users.noreply.github.com> Date: Tue, 14 Nov 2023 18:33:46 +0000 Subject: [PATCH] Reduce the Vulkan interop buffer kernel workgroup size to 256 (#1828) Using `local_size_x = 512` in the shader used in the Vulkan interop tests fails on older hardware because this exceeds the maximum barrier size limit. Changed to 256, which is still a multiple of 32 and 64, and is below the hardware limitations. The tests are not performance tests anyways, so the performance penalty, if any, is acceptable. Signed-off-by: Ahmed Hesham --- test_conformance/vulkan/shaders/buffer.comp | 2 +- test_conformance/vulkan/shaders/buffer.spv | Bin 2168 -> 2096 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/test_conformance/vulkan/shaders/buffer.comp b/test_conformance/vulkan/shaders/buffer.comp index d8756f92..49b1253c 100644 --- a/test_conformance/vulkan/shaders/buffer.comp +++ b/test_conformance/vulkan/shaders/buffer.comp @@ -15,7 +15,7 @@ layout(binding = 1) buffer Buffer { uint8_t ptr[]; } bufferPtrList[MAX_BUFFERS]; -layout(local_size_x = 512) in; +layout(local_size_x = 256) in; void main() { for (uint32_t bufIdx = 0; bufIdx < numBuffers; bufIdx++) { uint32_t ptrIdx = gl_GlobalInvocationID.x; diff --git a/test_conformance/vulkan/shaders/buffer.spv b/test_conformance/vulkan/shaders/buffer.spv index 685523ba5fbed55d32c179504d1d26834767d78e..f80414d5fae383d1ef769696bda72f251b414290 100644 GIT binary patch delta 36 scmew%ut9*EnMs+Qfq{{Mn}K5@cNZh$#A%B*H!$vHW@OxK$7;n40FSZ=F#rGn delta 108 zcmdlW@I!!`nMs+Qfq{{Mi-C6{cNZhm#A%D%S%5rupLlnFe|I0(_~e3u_~MevoYeT7 t%)He2l+2>k