intel/compiler: use 0 as sampler in emit_mcs_fetch
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 7 Feb 2019 21:44:33 +0000 (13:44 -0800)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 8 Feb 2019 22:51:56 +0000 (14:51 -0800)
commitee670d09afdbcbcc6ffec1847169ffaecfeff64b
tree03cb13e2898c61f64b7d4d10efa98fa2aef2aeca
parente8e544436cbe1fc6139334a2314896b42f88882e
intel/compiler: use 0 as sampler in emit_mcs_fetch

The sampler will be ignored since the underlying 'ld_mcs' operation
won't use it, so just fill the field with 0 instead of the texture to
make it clearer that's the case.

This will also avoid is_high_sampler() to kick in unnecessarily, in
case we are using the operation for a texture with index >= 16.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_fs_visitor.cpp
src/intel/compiler/brw_vec4_visitor.cpp