i965: enable OpenGL 4.2 in Ivybridge
authorJuan A. Suarez Romero <jasuarez@igalia.com>
Wed, 29 Mar 2017 09:41:35 +0000 (11:41 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 14 Apr 2017 23:13:21 +0000 (16:13 -0700)
Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/intel_extensions.c
src/mesa/drivers/dri/i965/intel_screen.c

index fc974b9860785f2dccabb8810e544343944e39b6..0133fa10068e10e3afd168cafbfc5c40a4af01da 100644 (file)
@@ -139,7 +139,7 @@ intelInitExtensions(struct gl_context *ctx)
    else if (brw->is_haswell && can_do_pipelined_register_writes(brw->screen))
       ctx->Const.GLSLVersion = 450;
    else if (brw->gen >= 7 && can_do_pipelined_register_writes(brw->screen))
-      ctx->Const.GLSLVersion = 400;
+      ctx->Const.GLSLVersion = 420;
    else if (brw->gen >= 6)
       ctx->Const.GLSLVersion = 330;
    else
index 9e536f58b3200c7ec87e8edfaddd85c4ded9531a..39e463d264dd44b2f260cb1f8b3b4dc78e039ff6 100644 (file)
@@ -1654,7 +1654,7 @@ set_max_gl_versions(struct intel_screen *screen)
    case 7:
       dri_screen->max_gl_core_version = 33;
       if (can_do_pipelined_register_writes(screen)) {
-         dri_screen->max_gl_core_version = screen->devinfo.is_haswell ? 42 : 40;
+         dri_screen->max_gl_core_version = 42;
          if (screen->devinfo.is_haswell && can_do_compute_dispatch(screen))
             dri_screen->max_gl_core_version = 43;
          if (screen->devinfo.is_haswell && can_do_mi_math_and_lrr(screen))