i965: Enable OpenGL 4.5 on Haswell.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 14 Jan 2017 06:53:34 +0000 (22:53 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 16 Jan 2017 18:13:23 +0000 (10:13 -0800)
Everything is in place and the test results look solid.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
src/mesa/drivers/dri/i965/intel_extensions.c
src/mesa/drivers/dri/i965/intel_screen.c

index 7a40eba..b674b2f 100644 (file)
@@ -137,7 +137,7 @@ intelInitExtensions(struct gl_context *ctx)
    if (brw->gen >= 8)
       ctx->Const.GLSLVersion = 450;
    else if (brw->is_haswell && can_do_pipelined_register_writes(brw->screen))
-      ctx->Const.GLSLVersion = 420;
+      ctx->Const.GLSLVersion = 450;
    else if (brw->gen >= 6)
       ctx->Const.GLSLVersion = 330;
    else
index a8d401c..6ae211d 100644 (file)
@@ -1539,7 +1539,7 @@ set_max_gl_versions(struct intel_screen *screen)
       break;
    case 7:
       dri_screen->max_gl_core_version = screen->devinfo.is_haswell &&
-         can_do_pipelined_register_writes(screen) ? 42 : 33;
+         can_do_pipelined_register_writes(screen) ? 45 : 33;
       dri_screen->max_gl_compat_version = 30;
       dri_screen->max_gl_es1_version = 11;
       dri_screen->max_gl_es2_version = screen->devinfo.is_haswell ? 31 : 30;