i965: Expose OpenGL 4.0 for gen8+
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 23 Feb 2016 11:15:36 +0000 (12:15 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 16 May 2016 07:55:34 +0000 (09:55 +0200)
ARB_gpu_shader_fp64 was the only feature missing.

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

index 67552bf0613df174e8f8d6918dbff102852d120f..362a7e558d519ebdb61fdbd8ac742dddca6756a4 100644 (file)
@@ -267,7 +267,9 @@ intelInitExtensions(struct gl_context *ctx)
    ctx->Extensions.OES_texture_half_float = true;
    ctx->Extensions.OES_texture_half_float_linear = true;
 
-   if (brw->gen >= 6)
+   if (brw->gen >= 8)
+      ctx->Const.GLSLVersion = 400;
+   else if (brw->gen >= 6)
       ctx->Const.GLSLVersion = 330;
    else
       ctx->Const.GLSLVersion = 120;
index f9b54842eb93607eb5c6b074ebb3614c94dfcb27..c2efc6ed200f453fc73e4ad1b81063bfdce883bc 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 = 33;
+      psp->max_gl_core_version = 40;
       psp->max_gl_compat_version = 30;
       psp->max_gl_es1_version = 11;
       psp->max_gl_es2_version = 31;