lavapipe: don't access pipeline dsa state when it should be ignored
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10625>
This commit is contained in:

committed by
Marge Bot

parent
6bacd2a325
commit
636a3903be
@@ -248,6 +248,7 @@ deep_copy_graphics_create_info(void *mem_ctx,
|
|||||||
VkResult result;
|
VkResult result;
|
||||||
VkPipelineShaderStageCreateInfo *stages;
|
VkPipelineShaderStageCreateInfo *stages;
|
||||||
VkPipelineVertexInputStateCreateInfo *vertex_input;
|
VkPipelineVertexInputStateCreateInfo *vertex_input;
|
||||||
|
LVP_FROM_HANDLE(lvp_render_pass, pass, src->renderPass);
|
||||||
|
|
||||||
dst->sType = src->sType;
|
dst->sType = src->sType;
|
||||||
dst->pNext = NULL;
|
dst->pNext = NULL;
|
||||||
@@ -331,7 +332,7 @@ deep_copy_graphics_create_info(void *mem_ctx,
|
|||||||
dst->pMultisampleState = NULL;
|
dst->pMultisampleState = NULL;
|
||||||
|
|
||||||
/* pDepthStencilState */
|
/* pDepthStencilState */
|
||||||
if (src->pDepthStencilState) {
|
if (src->pDepthStencilState && !rasterization_disabled && pass->has_zs_attachment) {
|
||||||
LVP_PIPELINE_DUP(dst->pDepthStencilState,
|
LVP_PIPELINE_DUP(dst->pDepthStencilState,
|
||||||
src->pDepthStencilState,
|
src->pDepthStencilState,
|
||||||
VkPipelineDepthStencilStateCreateInfo,
|
VkPipelineDepthStencilStateCreateInfo,
|
||||||
|
Reference in New Issue
Block a user