radv: increase maxComputeSharedMemorySize
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 9 Jun 2021 11:47:39 +0000 (12:47 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 10 Jun 2021 12:55:53 +0000 (12:55 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11262>

src/amd/vulkan/radv_device.c

index 5efca6f..e7fea9b 100644 (file)
@@ -1697,7 +1697,7 @@ radv_GetPhysicalDeviceProperties(VkPhysicalDevice physicalDevice,
       .maxFragmentOutputAttachments = 8,
       .maxFragmentDualSrcAttachments = 1,
       .maxFragmentCombinedOutputResources = 8,
-      .maxComputeSharedMemorySize = 32768,
+      .maxComputeSharedMemorySize = pdevice->rad_info.chip_class >= GFX7 ? 65536 : 32768,
       .maxComputeWorkGroupCount = {65535, 65535, 65535},
       .maxComputeWorkGroupInvocations = 1024,
       .maxComputeWorkGroupSize = {1024, 1024, 1024},