mesa: add GL_OES_viewport_array to the extension string
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 16 Sep 2016 17:53:03 +0000 (13:53 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 23 Sep 2016 00:42:30 +0000 (20:42 -0400)
The expectation is that drivers will set this based on
OES_geometry_shader and ARB_viewport_array support. This is a separate
enable on the same reasoning as for OES_texture_cube_map_array.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/compiler/glsl/glsl_parser_extras.cpp
src/mesa/main/extensions_table.h
src/mesa/main/mtypes.h

index 84d923f10829d96a2acc7f7db20d4f75c636cddb..b108afd959b8314f040d7c688c7bc8586619a680 100644 (file)
@@ -654,6 +654,7 @@ static const _mesa_glsl_extension _mesa_glsl_supported_extensions[] = {
    EXT(OES_texture_buffer),
    EXT(OES_texture_cube_map_array),
    EXT_AEP(OES_texture_storage_multisample_2d_array),
+   EXT(OES_viewport_array),
 
    /* All other extensions go here, sorted alphabetically.
     */
index c40dd7940c2f7219fffb0fd8bbaad4c4b7edff2f..e7669bbd0fca693fdf50b815c4ec47f444871f5f 100644 (file)
@@ -390,6 +390,7 @@ EXT(OES_texture_npot                        , ARB_texture_non_power_of_two
 EXT(OES_texture_stencil8                    , ARB_texture_stencil8                   ,  x ,  x ,  x ,  30, 2014)
 EXT(OES_texture_storage_multisample_2d_array, ARB_texture_multisample                ,  x ,  x ,  x ,  31, 2014)
 EXT(OES_vertex_array_object                 , dummy_true                             ,  x ,  x , ES1, ES2, 2010)
+EXT(OES_viewport_array                      , OES_viewport_array                     ,  x ,  x ,  x ,  31, 2010)
 
 EXT(S3_s3tc                                 , ANGLE_texture_compression_dxt          , GLL, GLC,  x ,  x , 1999)
 
index d82b8ce9a173deb0f765ce961b14e35696b01271..85aeb1e0df3fdb1b8e47baec294bed7c77109177 100644 (file)
@@ -3952,6 +3952,7 @@ struct gl_extensions
    GLboolean OES_standard_derivatives;
    GLboolean OES_texture_buffer;
    GLboolean OES_texture_cube_map_array;
+   GLboolean OES_viewport_array;
    /* vendor extensions */
    GLboolean AMD_performance_monitor;
    GLboolean AMD_pinned_memory;