lavapipe: propagate shader access info across libraries

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18827>
(cherry picked from commit 6db172436a)
This commit is contained in:
Mike Blumenkrantz
2022-09-26 15:22:35 -04:00
committed by Dylan Baker
parent 23cab32e26
commit 380ffeb205
2 changed files with 2 additions and 1 deletions

View File

@@ -661,7 +661,7 @@
"description": "lavapipe: propagate shader access info across libraries",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View File

@@ -790,6 +790,7 @@ lvp_graphics_pipeline_init(struct lvp_pipeline *pipeline,
pipeline->line_rectangular = p->line_rectangular;
pipeline->last_vertex = p->last_vertex;
memcpy(&pipeline->stream_output, &p->stream_output, sizeof(p->stream_output));
memcpy(&pipeline->access, &p->access, sizeof(p->access));
}
if (p->stages & VK_GRAPHICS_PIPELINE_LIBRARY_FRAGMENT_SHADER_BIT_EXT)
pipeline->force_min_sample = p->force_min_sample;