nir: set default lod to texture opcodes that needed it but don't provide it
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 9 Oct 2017 10:24:06 +0000 (12:24 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Fri, 20 Oct 2017 06:29:09 +0000 (08:29 +0200)
commite382890e25c0d95b0765ec00126f27dacc0e1da9
tree91e014893ec73b3b6528d32f7ba123d0b27499c7
parent6bc42855f92d4815b06873b67196c8ecc6fc8b6f
nir: set default lod to texture opcodes that needed it but don't provide it

v2:
- Use helper to add a new source to the texture instruction.

v3:
- Use nir_tex_instr_src_index() to simplify the patch (Jason).

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_lower_tex.c