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 <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8860>
This commit is contained in:
Tony Wasserka
2021-04-23 16:56:52 +02:00
committed by Marge Bot
parent ab409fbf9f
commit 336e5aea35

View File

@@ -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;