lavapipe: EXT_depth_clip_control
Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15126>
This commit is contained in:

committed by
Marge Bot

parent
f458c7f200
commit
07c0801e60
@@ -816,6 +816,16 @@ lvp_graphics_pipeline_init(struct lvp_pipeline *pipeline,
|
||||
deep_copy_graphics_create_info(pipeline->mem_ctx, &pipeline->graphics_create_info, pCreateInfo);
|
||||
pipeline->is_compute_pipeline = false;
|
||||
|
||||
if (pipeline->graphics_create_info.pViewportState) {
|
||||
/* if pViewportState is null, it means rasterization is discarded,
|
||||
* so this is ignored
|
||||
*/
|
||||
const VkPipelineViewportDepthClipControlCreateInfoEXT *ccontrol = vk_find_struct_const(pCreateInfo->pViewportState,
|
||||
PIPELINE_VIEWPORT_DEPTH_CLIP_CONTROL_CREATE_INFO_EXT);
|
||||
if (ccontrol)
|
||||
pipeline->negative_one_to_one = !!ccontrol->negativeOneToOne;
|
||||
}
|
||||
|
||||
const VkPipelineRasterizationProvokingVertexStateCreateInfoEXT *pv_state =
|
||||
vk_find_struct_const(pCreateInfo->pRasterizationState,
|
||||
PIPELINE_RASTERIZATION_PROVOKING_VERTEX_STATE_CREATE_INFO_EXT);
|
||||
|
Reference in New Issue
Block a user