mesa: add NV_viewport_array2 enable, attach to glsl
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 10 Apr 2020 20:06:03 +0000 (16:06 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 16 Apr 2020 00:12:00 +0000 (20:12 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4529>

src/compiler/glsl/glsl_parser_extras.cpp
src/mesa/main/extensions_table.h
src/mesa/main/mtypes.h

index 4f6a493f71ae393b1c043a4e26a31ea78fcaafec..6eb0aa2abb8090ab145cd3bec4156a36691e9603 100644 (file)
@@ -751,6 +751,7 @@ static const _mesa_glsl_extension _mesa_glsl_supported_extensions[] = {
    EXT(NV_fragment_shader_interlock),
    EXT(NV_image_formats),
    EXT(NV_shader_atomic_float),
+   EXT(NV_viewport_array2),
 };
 
 #undef EXT
index 5239a230cfde66e242dcd67e8f15133f8a8108d9..a4194a9ac5d0f323d435a3baf3302e20c193b7a0 100644 (file)
@@ -402,6 +402,7 @@ EXT(NV_texture_barrier                      , NV_texture_barrier
 EXT(NV_texture_env_combine4                 , NV_texture_env_combine4                , GLL,  x ,  x ,  x , 1999)
 EXT(NV_texture_rectangle                    , NV_texture_rectangle                   , GLL,  x ,  x ,  x , 2000)
 EXT(NV_vdpau_interop                        , NV_vdpau_interop                       , GLL, GLC,  x ,  x , 2010)
+EXT(NV_viewport_array2                      , NV_viewport_array2                     , GLL, GLC,  x ,  31, 2015)
 EXT(NV_viewport_swizzle                     , NV_viewport_swizzle                    , GLL, GLC,  x ,  31, 2015)
 
 EXT(OES_EGL_image                           , OES_EGL_image                          , GLL, GLC, ES1, ES2, 2006) /* FIXME: Mesa expects GL_OES_EGL_image to be available in OpenGL contexts. */
index 0f39041f73b26c3588285afaa1d117451afa5254..de10ba39a29afaf26867de453b4e4942649be380 100644 (file)
@@ -4448,6 +4448,7 @@ struct gl_extensions
    GLboolean NV_conservative_raster_dilate;
    GLboolean NV_conservative_raster_pre_snap_triangles;
    GLboolean NV_conservative_raster_pre_snap;
+   GLboolean NV_viewport_array2;
    GLboolean NV_viewport_swizzle;
    GLboolean NVX_gpu_memory_info;
    GLboolean TDFX_texture_compression_FXT1;