lavapipe: don't copy pNext

We have to ignore unknown structs, so don't init the deep copy pNext
with the src.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7978>
This commit is contained in:
Dave Airlie 2020-12-08 09:35:01 +10:00
parent 6a27262cc2
commit eec9d67e44

View file

@ -174,8 +174,7 @@ deep_copy_viewport_state(void *mem_ctx,
const VkPipelineViewportStateCreateInfo *src)
{
dst->sType = src->sType;
dst->pNext = src->pNext;
dst->pNext = NULL;
dst->flags = src->flags;
if (src->pViewports) {
@ -205,7 +204,7 @@ deep_copy_color_blend_state(void *mem_ctx,
const VkPipelineColorBlendStateCreateInfo *src)
{
dst->sType = src->sType;
dst->pNext = src->pNext;
dst->pNext = NULL;
dst->flags = src->flags;
dst->logicOpEnable = src->logicOpEnable;
dst->logicOp = src->logicOp;
@ -227,7 +226,7 @@ deep_copy_dynamic_state(void *mem_ctx,
const VkPipelineDynamicStateCreateInfo *src)
{
dst->sType = src->sType;
dst->pNext = src->pNext;
dst->pNext = NULL;
dst->flags = src->flags;
LVP_PIPELINE_DUP(dst->pDynamicStates,