mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 15:30:09 +00:00
zink: zero viewport and scissor count in pipeline with dynamic state1
this is illegal Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12586>
This commit is contained in:
parent
cab68281ba
commit
827fcb7e32
@ -125,9 +125,9 @@ zink_create_gfx_pipeline(struct zink_screen *screen,
|
||||
|
||||
VkPipelineViewportStateCreateInfo viewport_state = {0};
|
||||
viewport_state.sType = VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO;
|
||||
viewport_state.viewportCount = state->dyn_state1.num_viewports;
|
||||
viewport_state.viewportCount = screen->info.have_EXT_extended_dynamic_state ? 0 : state->dyn_state1.num_viewports;
|
||||
viewport_state.pViewports = NULL;
|
||||
viewport_state.scissorCount = state->dyn_state1.num_viewports;
|
||||
viewport_state.scissorCount = screen->info.have_EXT_extended_dynamic_state ? 0 : state->dyn_state1.num_viewports;
|
||||
viewport_state.pScissors = NULL;
|
||||
|
||||
VkPipelineRasterizationStateCreateInfo rast_state = {0};
|
||||
|
Loading…
Reference in New Issue
Block a user