summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/radeonsi/si_state_draw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state_draw.cpp')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_draw.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.cpp b/src/gallium/drivers/radeonsi/si_state_draw.cpp
index 9f8ec51a98b..7921c97d9eb 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.cpp
+++ b/src/gallium/drivers/radeonsi/si_state_draw.cpp
@@ -1947,9 +1947,9 @@ static void si_draw_vbo(struct pipe_context *ctx,
if (!rs->polygon_mode_enabled)
ngg_culling |= SI_NGG_CULL_VIEW_SMALLPRIMS;
- if (sctx->viewports.y_inverted ? rs->cull_back : rs->cull_front)
+ if (sctx->viewport0_y_inverted ? rs->cull_back : rs->cull_front)
ngg_culling |= SI_NGG_CULL_FRONT_FACE;
- if (sctx->viewports.y_inverted ? rs->cull_front : rs->cull_back)
+ if (sctx->viewport0_y_inverted ? rs->cull_front : rs->cull_back)
ngg_culling |= SI_NGG_CULL_BACK_FACE;
}