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 <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Ian Romanick
2016-11-08 10:10:34 -08:00
committed by Kenneth Graunke
parent b7699ce07c
commit 90c51ccf82

View File

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