summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-04-01 19:58:22 -0400
committerMarek Olšák <[email protected]>2018-04-05 15:34:58 -0400
commitf9323ddbb9de667475d12f7a9183a855f3f33ac8 (patch)
tree0a9e93071d640e4a2a3e12a51fea734ad50232cf /src/gallium/drivers
parent6a93441295c884022daa955059e74befc667510d (diff)
radeonsi: clean up GET_MAX_VIEWPORT_RANGE definition
Acked-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_viewport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_viewport.c b/src/gallium/drivers/radeonsi/si_state_viewport.c
index f392c900f13..09ea584e31e 100644
--- a/src/gallium/drivers/radeonsi/si_state_viewport.c
+++ b/src/gallium/drivers/radeonsi/si_state_viewport.c
@@ -134,7 +134,7 @@ static void si_emit_one_scissor(struct si_context *ctx,
}
/* the range is [-MAX, MAX] */
-#define GET_MAX_VIEWPORT_RANGE(rctx) (32768)
+#define SI_MAX_VIEWPORT_RANGE 32768
static void si_emit_guardband(struct si_context *ctx,
struct si_signed_scissor *vp_as_scissor)
@@ -165,7 +165,7 @@ static void si_emit_guardband(struct si_context *ctx,
*
* Use a limit one pixel smaller to allow for some precision error.
*/
- max_range = GET_MAX_VIEWPORT_RANGE(ctx) - 1;
+ max_range = SI_MAX_VIEWPORT_RANGE - 1;
left = (-max_range - vp.translate[0]) / vp.scale[0];
right = ( max_range - vp.translate[0]) / vp.scale[0];
top = (-max_range - vp.translate[1]) / vp.scale[1];