nir: Add option to lower tex to txl when shader don't support implicit LOD
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 19 Apr 2019 04:01:15 +0000 (21:01 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 25 Apr 2019 19:13:06 +0000 (12:13 -0700)
commitd5ac5d6e836f348799625ce5792d3faee655cf9e
tree17fb9c36ac0e8face1c0fceb327bb2ef45b9f24f
parentff642fb0e6523dbbe44835b5c75ac14501c9a885
nir: Add option to lower tex to txl when shader don't support implicit LOD

We already add the LOD src, so go ahead and update the texop as well
when this option is set.

v2: Make it an option. (Rob Clark)

v3: Use a more concise name suggested by Jason.

Reviewed-by: Rob Clark <robdclark@gmail.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_tex.c