mesa/st: add sampler uniforms
authorRob Clark <robdclark@chromium.org>
Mon, 15 Jul 2019 16:05:55 +0000 (09:05 -0700)
committerRob Clark <robdclark@gmail.com>
Tue, 16 Jul 2019 18:14:44 +0000 (18:14 +0000)
commit856e84083eee9b22408a23d4eeec246e64adfac2
tree9ef15abfd1403c780c49a1ccbf90bcb8f975a00d
parenta9f34b563189072a4830fe07fe034e902a7d48f2
mesa/st: add sampler uniforms

Add sampler uniforms for the UV plane(s), so driver can count the
uniforms and get the correct sampler count.

Fixes lowered YUV on a6xx which actually wants to know # of samplers.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/state_tracker/st_nir_lower_tex_src_plane.c