From: Ilia Mirkin Date: Fri, 10 Apr 2020 20:06:03 +0000 (-0400) Subject: mesa: add NV_viewport_array2 enable, attach to glsl X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d4787d77e3bd1986381b77105d2ca9d094ad7c0;p=mesa.git mesa: add NV_viewport_array2 enable, attach to glsl Signed-off-by: Ilia Mirkin Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/compiler/glsl/glsl_parser_extras.cpp b/src/compiler/glsl/glsl_parser_extras.cpp index 4f6a493f71a..6eb0aa2abb8 100644 --- a/src/compiler/glsl/glsl_parser_extras.cpp +++ b/src/compiler/glsl/glsl_parser_extras.cpp @@ -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 diff --git a/src/mesa/main/extensions_table.h b/src/mesa/main/extensions_table.h index 5239a230cfd..a4194a9ac5d 100644 --- a/src/mesa/main/extensions_table.h +++ b/src/mesa/main/extensions_table.h @@ -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. */ diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 0f39041f73b..de10ba39a29 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -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;