nir: Don't set LOD=0 for compute shader that has derivative group
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 5 Apr 2019 23:04:40 +0000 (16:04 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 9 Apr 2019 02:29:33 +0000 (19:29 -0700)
commitfcbc5ccaae6e606e68199c838e23545b4283b788
treec6c1bec5617ba394c190d74184c6593be5ce5cfc
parentd08a74d2bf12721f450098cfac300b4f5bcc5dfc
nir: Don't set LOD=0 for compute shader that has derivative group

When using NV_compute_shader_derivatives to set a derivative group,
a compute shader supports texture with implicit LOD calculation, so
don't set an explicit LOD.

Note if the extension is used but the derivative group is not
specified, it will default to LOD=0 as before.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_lower_tex.c