[Mesa-dev] [PATCH 11/11] i965: Delete redundant extension enables

Ian Romanick idr at freedesktop.org
Wed Jun 15 02:01:59 UTC 2016


From: Ian Romanick <ian.d.romanick at intel.com>

A nearly identical block already exists in the gen >= 6 block above.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
---
 src/mesa/drivers/dri/i965/intel_extensions.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c
index 5be4787..b55fed2 100644
--- a/src/mesa/drivers/dri/i965/intel_extensions.c
+++ b/src/mesa/drivers/dri/i965/intel_extensions.c
@@ -360,15 +360,6 @@ intelInitExtensions(struct gl_context *ctx)
          if (brw->intelScreen->cmd_parser_version >= 2)
             brw->predicate.supported = true;
       }
-
-      /* Only enable this in core profile because other parts of Mesa behave
-       * slightly differently when the extension is enabled.
-       */
-      if (ctx->API == API_OPENGL_CORE) {
-         ctx->Extensions.ARB_viewport_array = true;
-         ctx->Extensions.AMD_vertex_shader_viewport_index = true;
-         ctx->Extensions.ARB_shader_subroutine = true;
-      }
    }
 
    if (brw->gen >= 8 || brw->is_haswell || brw->is_baytrail) {
-- 
2.5.5



More information about the mesa-dev mailing list