nir: add option to use scaling factor when sampling planes YUV lowering
authorTapani Pälli <tapani.palli@intel.com>
Mon, 11 Feb 2019 07:25:18 +0000 (09:25 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Tue, 12 Feb 2019 06:41:20 +0000 (08:41 +0200)
commit19a85a704bb163c80e9c87aa5a03da1e6574a8dd
treea50ec98791e3d5d758406b59792481c86b3c3014
parent3eedc8f7b144c6bc21301a551763a53884c60fa1
nir: add option to use scaling factor when sampling planes YUV lowering

Patch adds nir_lower_tex_options as parameter to sample_plane so that
we don't need to extend nir_tex_instr for this.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_tex.c