From 336e5aea3599d76a5cc23b6b93321dd1a0cf00a3 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Fri, 23 Apr 2021 16:56:52 +0200 Subject: [PATCH] radv: Remove assert about pDepthStencilState RenderDoc's serialization code replaces unused references with NULL pointers, which caused this assert to fire when the NULL state wasn't really dereferenced. Reviewed-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_pipeline.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 9fc759526a6..7e47ada5e38 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -1614,8 +1614,6 @@ radv_pipeline_init_dynamic_state(struct radv_pipeline *pipeline, * against does not use a depth/stencil attachment. */ if (needed_states && subpass->depth_stencil_attachment) { - assert(pCreateInfo->pDepthStencilState); - if (states & RADV_DYNAMIC_DEPTH_BOUNDS) { dynamic->depth_bounds.min = pCreateInfo->pDepthStencilState->minDepthBounds; dynamic->depth_bounds.max = pCreateInfo->pDepthStencilState->maxDepthBounds;