nir/lower_tex: support projector lowering per sampler type
authorRob Clark <robclark@freedesktop.org>
Wed, 16 Sep 2015 16:56:58 +0000 (12:56 -0400)
committerRob Clark <robclark@freedesktop.org>
Sat, 19 Sep 2015 01:07:49 +0000 (21:07 -0400)
commitfaf5f174ddbc7680f6947ceababb94fdb552bcdb
treee397325f701a364dcc5010016ccee4a4a852485c
parentf83ba7bc41a381a0e52c456431dbe1a15176ffb4
nir/lower_tex: support projector lowering per sampler type

Some hardware, such as adreno a3xx, supports txp on some but not all
sampler types.  In this case we want more fine grained control over
which texture projectors get lowered.

v2: split out nir_lower_tex_options struct to make it easier to
add the additional parameters coming in the following patches

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/nir.h
src/glsl/nir/nir_lower_tex.c
src/mesa/drivers/dri/i965/brw_nir.c