st/glsl: add support for alternate TG4 encoding.
authorDave Airlie <airlied@redhat.com>
Wed, 9 Oct 2019 03:09:00 +0000 (13:09 +1000)
committerDave Airlie <airlied@linux.ie>
Fri, 11 Oct 2019 00:32:15 +0000 (00:32 +0000)
commita70f0a88412f840d158309374407e9e7e30af451
treecfffc8de4dbf83243fd67a98aca68078795f4571
parent0c09df52e10f0339973f44cef68ff5e237720c8a
st/glsl: add support for alternate TG4 encoding.

This will encode the component selection value (0, 1, 2, 3) into
the X swizzle of the sampler, if the driver requests it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_glsl_to_tgsi_private.h