mesa: expose ARB_enhanced_layouts in the compatibility profile
authorMarek Olšák <marek.olsak@amd.com>
Wed, 14 Feb 2018 22:42:08 +0000 (23:42 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 23 Feb 2018 19:50:19 +0000 (20:50 +0100)
GLSL 1.40 is required.

Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/dri/i965/intel_extensions.c
src/mesa/main/extensions_table.h

index cc961e051fde9e4335fb8fdd4b7657c93dc6e31c..5a6b12e52a4d7ad798388e6f241ef2d408f9c0b2 100644 (file)
@@ -172,7 +172,8 @@ intelInitExtensions(struct gl_context *ctx)
       ctx->Extensions.ARB_conditional_render_inverted = true;
       ctx->Extensions.ARB_cull_distance = true;
       ctx->Extensions.ARB_draw_buffers_blend = true;
-      ctx->Extensions.ARB_enhanced_layouts = true;
+      if (ctx->API != API_OPENGL_COMPAT)
+         ctx->Extensions.ARB_enhanced_layouts = true;
       ctx->Extensions.ARB_ES3_compatibility = true;
       ctx->Extensions.ARB_fragment_layer_viewport = true;
       ctx->Extensions.ARB_pipeline_statistics_query = true;
index 02c97a242ab19859903f7e83db71aaead51375bc..71c9a5756941ed1f607c6607332c8c4d0a4add87 100644 (file)
@@ -60,7 +60,7 @@ EXT(ARB_draw_buffers_blend                  , ARB_draw_buffers_blend
 EXT(ARB_draw_elements_base_vertex           , ARB_draw_elements_base_vertex          , GLL, GLC,  x ,  x , 2009)
 EXT(ARB_draw_indirect                       , ARB_draw_indirect                      ,  x , GLC,  x ,  x , 2010)
 EXT(ARB_draw_instanced                      , ARB_draw_instanced                     , GLL, GLC,  x ,  x , 2008)
-EXT(ARB_enhanced_layouts                    , ARB_enhanced_layouts                   ,  x , GLC,  x ,  x , 2013)
+EXT(ARB_enhanced_layouts                    , ARB_enhanced_layouts                   , GLL, GLC,  x ,  x , 2013)
 EXT(ARB_explicit_attrib_location            , ARB_explicit_attrib_location           , GLL, GLC,  x ,  x , 2009)
 EXT(ARB_explicit_uniform_location           , ARB_explicit_uniform_location          , GLL, GLC,  x ,  x , 2012)
 EXT(ARB_fragment_coord_conventions          , ARB_fragment_coord_conventions         , GLL, GLC,  x ,  x , 2009)