tgsi_to_nir: use sampler variables and derefs
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 6 Feb 2019 11:04:15 +0000 (03:04 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 5 Mar 2019 19:13:27 +0000 (19:13 +0000)
commit2fb800fd1d1125bdb8cd498cf7b358098337ba73
tree0e9330988ff226174a032d29a933f0f64ef19e1e
parent674045d04b9ebd134b6322a3b944986b4082a3b1
tgsi_to_nir: use sampler variables and derefs

v2: fix is_shadow, is_array and txq

Some drivers (eg. iris) need the presence of sampler variables and derefs
so that they can count them to determine the number of samplers used.
This change also makes the output NIR closer to what glsl_to_nir outputs.

Signed-Off-By: Timur Kristóf <timur.kristof@gmail.com>
Tested-by: Andre Heider <a.heider@gmail.com>
Tested-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/auxiliary/nir/tgsi_to_nir.c