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:
Marek Olšák
2023-12-31 23:11:39 -05:00
committed by Marge Bot
parent bad2530a40
commit 9dbd3437c6

View File

@@ -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)