gallium: add a a new cap for changing the TGSI TG4 instruction encoding
authorDave Airlie <airlied@redhat.com>
Wed, 9 Oct 2019 03:07:04 +0000 (13:07 +1000)
committerDave Airlie <airlied@linux.ie>
Fri, 11 Oct 2019 00:32:15 +0000 (00:32 +0000)
commit0c09df52e10f0339973f44cef68ff5e237720c8a
tree73c16a10be2214f4762ee734b63b356f0d2095ce
parent1e65757f4e8283f136924f7594485ea4440c7e78
gallium: add a a new cap for changing the TGSI TG4 instruction encoding

Accessing the TG4 component via immediates in the llvmpipe backend is quite
messy (like really messy). Roland suggested we change the instruction encoding,
so introduce a cap to allow the component to be selected to be store in the
sampler swizzle, which should be otherwise unused.

I could probably switch all drivers over, but virgl would need some work that
I'd prefer not to rush it.

Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/util/u_screen.c
src/gallium/docs/source/screen.rst
src/gallium/docs/source/tgsi.rst
src/gallium/include/pipe/p_defines.h