From: Friedrich Vock Date: Fri, 2 Jun 2023 12:40:12 +0000 (+0200) Subject: radv: Re-enable RT pipeline capture/replay handles X-Git-Tag: upstream/23.3.3~6024 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4880c827d63a1fd674b1b7cd5050c5e837316cde;p=platform%2Fupstream%2Fmesa.git radv: Re-enable RT pipeline capture/replay handles Part-of: --- diff --git a/src/amd/vulkan/radv_physical_device.c b/src/amd/vulkan/radv_physical_device.c index a312548..5631328 100644 --- a/src/amd/vulkan/radv_physical_device.c +++ b/src/amd/vulkan/radv_physical_device.c @@ -890,7 +890,7 @@ radv_physical_device_get_features(const struct radv_physical_device *pdevice, st /* VK_KHR_ray_tracing_pipeline */ .rayTracingPipeline = true, - .rayTracingPipelineShaderGroupHandleCaptureReplay = false, + .rayTracingPipelineShaderGroupHandleCaptureReplay = true, .rayTracingPipelineShaderGroupHandleCaptureReplayMixed = false, .rayTracingPipelineTraceRaysIndirect = true, .rayTraversalPrimitiveCulling = true, @@ -1677,7 +1677,7 @@ radv_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice, VkPhysicalDev /* 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->shaderGroupHandleCaptureReplaySize = sizeof(struct radv_rt_capture_replay_handle); props->maxRayDispatchInvocationCount = 1024 * 1024 * 64; props->shaderGroupHandleAlignment = 16; props->maxRayHitAttributeSize = RADV_MAX_HIT_ATTRIB_SIZE;