radeonsi: remove no-op additions for viewport0_y_inverted
adding the same value to both sides of the equation has no effect Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26917>
This commit is contained in:
@@ -477,8 +477,7 @@ static void si_set_viewport_states(struct pipe_context *pctx, unsigned start_slo
|
||||
}
|
||||
|
||||
if (start_slot == 0) {
|
||||
ctx->viewport0_y_inverted =
|
||||
-state->scale[1] + state->translate[1] > state->scale[1] + state->translate[1];
|
||||
ctx->viewport0_y_inverted = state->scale[1] < 0;
|
||||
|
||||
/* NGG cull state uses the viewport and quant mode. */
|
||||
if (ctx->screen->use_ngg_culling)
|
||||
|
Reference in New Issue
Block a user