radv: Change shaderGroupBaseAlignment to RADV_RT_HANDLE_SIZE
authorFriedrich Vock <friedrich.vock@gmx.de>
Tue, 29 Nov 2022 00:25:31 +0000 (01:25 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 12 Dec 2022 18:52:59 +0000 (18:52 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20270>

src/amd/vulkan/radv_device.c

index 8b0adb8..2d1db98 100644 (file)
@@ -2623,7 +2623,9 @@ radv_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
          props->shaderGroupHandleSize = RADV_RT_HANDLE_SIZE;
          props->maxRayRecursionDepth = 31;    /* Minimum allowed for DXR. */
          props->maxShaderGroupStride = 16384; /* dummy */
-         props->shaderGroupBaseAlignment = 16;
+         /* This isn't strictly necessary, but Doom Eternal breaks if the
+          * alignment is any lower. */
+         props->shaderGroupBaseAlignment = RADV_RT_HANDLE_SIZE;
          props->shaderGroupHandleCaptureReplaySize = RADV_RT_HANDLE_SIZE;
          props->maxRayDispatchInvocationCount = 1024 * 1024 * 64;
          props->shaderGroupHandleAlignment = 16;