i965: Enable OpenGL 4.6 for Gen8+
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 17 Jan 2019 12:40:51 +0000 (13:40 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 21 Aug 2019 15:29:42 +0000 (17:29 +0200)
The last remaining stuff was ARB_gl_spirv and ARB_spirv_extensions.

Note that it is really likely that we can enable it for some Gen7 (as
4.5 was), but it was not tested yet.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/mesa/drivers/dri/i965/intel_extensions.c
src/mesa/drivers/dri/i965/intel_screen.c

index 32802311ca97046bc8fca5cdecfdfe552448de23..061847621249217588b4b1824401a41d912ab892 100644 (file)
@@ -143,7 +143,7 @@ intelInitExtensions(struct gl_context *ctx)
    ctx->Extensions.OES_texture_half_float_linear = true;
 
    if (devinfo->gen >= 8)
-      ctx->Const.GLSLVersion = 450;
+      ctx->Const.GLSLVersion = 460;
    else if (devinfo->is_haswell && can_do_pipelined_register_writes(brw->screen))
       ctx->Const.GLSLVersion = 450;
    else if (devinfo->gen >= 7 && can_do_pipelined_register_writes(brw->screen))
index 83f2f4c2465b8b8f7c4c56dca50d1cdd2824c150..4f701a0b2f88c0a67fe4e98054c14d96a837cc49 100644 (file)
@@ -2378,7 +2378,7 @@ set_max_gl_versions(struct intel_screen *screen)
    case 10:
    case 9:
    case 8:
-      dri_screen->max_gl_core_version = 45;
+      dri_screen->max_gl_core_version = 46;
       dri_screen->max_gl_compat_version = 30;
       dri_screen->max_gl_es1_version = 11;
       dri_screen->max_gl_es2_version = has_astc ? 32 : 31;