summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2016-11-08 10:10:34 -0800
committerKenneth Graunke <[email protected]>2017-01-06 12:42:43 -0800
commit90c51ccf82e04d06aa63aea49121165b7f2e8991 (patch)
tree171e8355962e125e34a92b18113666effa40ff2f
parentb7699ce07cb508e461a4fc6662b8fd0c5e6f0243 (diff)
i965: Always set MaxViewports and related limits
Since 9d6ca7c3, there should be no performance hit for having MaxViewports > 1. Always set this context state. This eliminates the need to update this conditional as we add support for OES_viewport_array on older GPUs. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 0b9d2a05bf6..f939463539c 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -795,8 +795,7 @@ brw_initialize_context_constants(struct brw_context *brw)
}
/* ARB_viewport_array, OES_viewport_array */
- if ((brw->gen >= 6 && ctx->API == API_OPENGL_CORE) ||
- (brw->gen >= 8 && ctx->API == API_OPENGLES2)) {
+ if (brw->gen >= 6) {
ctx->Const.MaxViewports = GEN6_NUM_VIEWPORTS;
ctx->Const.ViewportSubpixelBits = 0;