gallium: plumb invariant output attrib thru TGSI
authorJoe M. Kniss <djmk@chromium.org>
Thu, 21 Jun 2018 00:55:10 +0000 (17:55 -0700)
committerDave Airlie <airlied@redhat.com>
Fri, 29 Jun 2018 01:11:54 +0000 (11:11 +1000)
commit70425bcfe63c4e9191809659d019ec4af923595d
tree3993a5978c655b0a1bed9ce71447ded2fb16276c
parentc2c803be7bfb857b6846390d2aae7523319ac58e
gallium: plumb invariant output attrib thru TGSI

Add support for glsl 'invariant' modifier for output data declarations.
Gallium drivers that use TGSI serialization currently loose invariant
modifiers in glsl shaders.

v2: use boolean for invariant instead of unsigned.

Tested: chromiumos on qemu with virglrenderer.
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/tgsi/tgsi_strings.c
src/gallium/auxiliary/tgsi/tgsi_strings.h
src/gallium/auxiliary/tgsi/tgsi_text.c
src/gallium/auxiliary/tgsi/tgsi_ureg.c
src/gallium/auxiliary/tgsi/tgsi_ureg.h
src/mesa/state_tracker/st_glsl_to_tgsi.cpp