glsl: add NV_viewport_array2 support
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 10 Apr 2020 20:02:09 +0000 (16:02 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 16 Apr 2020 00:12:00 +0000 (20:12 -0400)
commitcc6661bfc87f6a8a46455ddaf2e0fb1c1fd332ed
tree9f8dd8677bff5ca9304f0265de9f11a2ee251072
parent54424a3d13f97bb1714f168f127f40d180f78a6b
glsl: add NV_viewport_array2 support

This enables gl_Layer/gl_ViewportIndex when the ext is enabled, as well
as adding the new gl_ViewportMask[] array and viewport_relative layout
qualifier for gl_Layer.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4529>
src/compiler/glsl/ast.h
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/builtin_variables.cpp
src/compiler/glsl/glsl_parser.yy
src/compiler/glsl/glsl_parser_extras.cpp
src/compiler/glsl/glsl_parser_extras.h
src/compiler/glsl/linker.cpp
src/compiler/shader_info.h
src/mesa/main/mtypes.h