[Mesa-dev] [PATCH] radv: Use correct workgroup size limits.

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Sun Dec 18 20:11:42 UTC 2016


Not sure where the 16k comes from, but pretty sure 2k is the max.

Signed-off-by: Bas Nieuwenhuizen <basni at google.com>
---
 src/amd/vulkan/radv_device.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 6362e9ead1..7a64cc4473 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -475,11 +475,11 @@ void radv_GetPhysicalDeviceProperties(
 		.maxFragmentCombinedOutputResources       = 8,
 		.maxComputeSharedMemorySize               = 32768,
 		.maxComputeWorkGroupCount                 = { 65535, 65535, 65535 },
-		.maxComputeWorkGroupInvocations           = 16 * 1024,
+		.maxComputeWorkGroupInvocations           = 2048,
 		.maxComputeWorkGroupSize = {
-			16 * 1024/*devinfo->max_cs_threads*/,
-			16 * 1024,
-			16 * 1024
+			2048,
+			2048,
+			2048
 		},
 		.subPixelPrecisionBits                    = 4 /* FIXME */,
 		.subTexelPrecisionBits                    = 4 /* FIXME */,
-- 
2.11.0



More information about the mesa-dev mailing list