i965: Expose OpenGL 4.2 for gen8+
authorAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 26 Apr 2016 12:35:24 +0000 (14:35 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 17 May 2016 07:05:55 +0000 (09:05 +0200)
ARB_vertex_attrib_64bit was the only feature missing.

v2: we can expose 4.2 instead of 4.1 (Ian Romanick)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_extensions.c
src/mesa/drivers/dri/i965/intel_screen.c

index 957e3637d2ebce83cbd01f5ad8732f476d2fd9b3..8b4f6853bf73879e6d14ab8ea6c2532d5b9e9365 100644 (file)
@@ -268,7 +268,7 @@ intelInitExtensions(struct gl_context *ctx)
    ctx->Extensions.OES_texture_half_float_linear = true;
 
    if (brw->gen >= 8)
-      ctx->Const.GLSLVersion = 400;
+      ctx->Const.GLSLVersion = 420;
    else if (brw->gen >= 6)
       ctx->Const.GLSLVersion = 330;
    else
index c2efc6ed200f453fc73e4ad1b81063bfdce883bc..1a0541a6c7ca3a27682a81387b4c2ab41ff38be8 100644 (file)
@@ -1376,7 +1376,7 @@ set_max_gl_versions(struct intel_screen *screen)
    switch (screen->devinfo->gen) {
    case 9:
    case 8:
-      psp->max_gl_core_version = 40;
+      psp->max_gl_core_version = 42;
       psp->max_gl_compat_version = 30;
       psp->max_gl_es1_version = 11;
       psp->max_gl_es2_version = 31;