mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 01:38:06 +02:00
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:
parent
6a27262cc2
commit
eec9d67e44
1 changed files with 3 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue