From 2cd93ea4a03c9102e2b88a2cabe6abcbc968992a Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 12 Sep 2023 20:56:43 +0200 Subject: [PATCH] tu: Don't use pipeline for per_view_viewport We already have the state in the command buffer. Part-of: --- src/freedreno/vulkan/tu_pipeline.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedreno/vulkan/tu_pipeline.cc b/src/freedreno/vulkan/tu_pipeline.cc index 46120fe..5c11545 100644 --- a/src/freedreno/vulkan/tu_pipeline.cc +++ b/src/freedreno/vulkan/tu_pipeline.cc @@ -2654,7 +2654,7 @@ tu6_emit_viewport_fdm(struct tu_cs *cs, struct tu_cmd_buffer *cmd, unsigned num_views = MAX2(cmd->state.pass->num_views, 1); struct apply_viewport_state state = { .vp = *vp, - .share_scale = !cmd->state.pipeline->base.program.per_view_viewport, + .share_scale = !cmd->state.per_view_viewport, }; if (!state.share_scale) state.vp.viewport_count = num_views; @@ -2765,7 +2765,7 @@ tu6_emit_scissor_fdm(struct tu_cs *cs, struct tu_cmd_buffer *cmd, unsigned num_views = MAX2(cmd->state.pass->num_views, 1); struct apply_viewport_state state = { .vp = *vp, - .share_scale = !cmd->state.pipeline->base.program.per_view_viewport, + .share_scale = !cmd->state.per_view_viewport, }; if (!state.share_scale) state.vp.scissor_count = num_views; -- 2.7.4