glsl: add language support for GL_ARM_shader_framebuffer_fetch_depth_stencil
authorPavel Asyutchenko <sventeam@yandex.ru>
Wed, 1 Sep 2021 20:26:12 +0000 (23:26 +0300)
committerMarge Bot <emma+marge@anholt.net>
Wed, 22 Jun 2022 04:32:44 +0000 (04:32 +0000)
commit959b7480388aa499c00fa2bd531cba92b7799c94
treee5c88017d10265c2e098320472a83d4fa65d6edc
parent41f22a1823a77183fb28e8a6dd312d723c3fda87
glsl: add language support for GL_ARM_shader_framebuffer_fetch_depth_stencil

This extension adds built-in variables gl_LastFragDepthARM and gl_LastFragStencilARM
which can be implemented almost the same as gl_LastFragData from color fetch extension.

Signed-off-by: Pavel Asyutchenko <sventeam@yandex.ru>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13979>
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/builtin_variables.cpp
src/compiler/glsl/glsl_parser_extras.cpp
src/compiler/glsl/glsl_parser_extras.h
src/compiler/glsl/ir.h