lavapipe: skip post-copy pNext checking during pipeline creation for composites

these values should have all been set during pipeline compositing above,
so reapplying the values is at best, redundant, and at worst, broken

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17219>
This commit is contained in:
Mike Blumenkrantz 2022-06-23 10:28:16 -04:00 committed by Marge Bot
parent f8a92d28ad
commit b74d3e71be

View file

@ -1443,9 +1443,8 @@ lvp_graphics_pipeline_init(struct lvp_pipeline *pipeline,
} }
} }
} }
} } else if (pipeline->stages & VK_GRAPHICS_PIPELINE_LIBRARY_PRE_RASTERIZATION_SHADERS_BIT_EXT) {
/* composite pipelines should have these values set above */
if (pipeline->stages & VK_GRAPHICS_PIPELINE_LIBRARY_PRE_RASTERIZATION_SHADERS_BIT_EXT) {
if (pipeline->graphics_create_info.pViewportState) { if (pipeline->graphics_create_info.pViewportState) {
/* if pViewportState is null, it means rasterization is discarded, /* if pViewportState is null, it means rasterization is discarded,
* so this is ignored * so this is ignored