mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 05:00:32 +01:00
tu: Don't use pipeline for per_view_viewport
We already have the state in the command buffer. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25276>
This commit is contained in:
parent
630e60fae7
commit
2cd93ea4a0
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue