aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_state_viewport.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-09-26 17:57:59 +0200
committerNicolai Hähnle <[email protected]>2017-10-02 15:07:45 +0200
commit7bbcb6ac6cf3e09da4387bf9c658c3aa1270db9a (patch)
tree6f4069e5620b6f415d0d24771b868ab512061ff2 /src/gallium/drivers/radeonsi/si_state_viewport.c
parent6b416ec3d665fb1e10fafad44fbd8f9cec661a68 (diff)
radeonsi: move current_rast_prim into si_context
v2: rebase fixes Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_state_viewport.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_viewport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_viewport.c b/src/gallium/drivers/radeonsi/si_state_viewport.c
index d462f7d0a28..eb4c00a24de 100644
--- a/src/gallium/drivers/radeonsi/si_state_viewport.c
+++ b/src/gallium/drivers/radeonsi/si_state_viewport.c
@@ -186,7 +186,7 @@ static void si_emit_guardband(struct si_context *ctx,
discard_x = 1.0;
discard_y = 1.0;
- if (ctx->b.current_rast_prim < PIPE_PRIM_TRIANGLES) {
+ if (ctx->current_rast_prim < PIPE_PRIM_TRIANGLES) {
/* When rendering wide points or lines, we need to be more
* conservative about when to discard them entirely. Since
* point size can be determined by the VS output, we basically