intel,nir: Lower TXD with min_lod when the sampler index is not < 16
When we have a larger sampler index, we get into the "high sampler"
scenario and need an instruction header. Even in SIMD8, this pushes the
instruction over the sampler message size maximum of 11 registers.
Instead, we have to lower TXD to TXL.
Fixes: cb98e0755f
"intel/fs: Support min_lod parameters on texture..."
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:

committed by
Jason Ekstrand

parent
ca295ddbfb
commit
5c96120b5c
@@ -904,7 +904,9 @@ brw_nir_apply_sampler_key(nir_shader *nir,
|
||||
bool is_scalar)
|
||||
{
|
||||
const struct gen_device_info *devinfo = compiler->devinfo;
|
||||
nir_lower_tex_options tex_options = { 0 };
|
||||
nir_lower_tex_options tex_options = {
|
||||
.lower_txd_clamp_if_sampler_index_not_lt_16 = true,
|
||||
};
|
||||
|
||||
/* Iron Lake and prior require lowering of all rectangle textures */
|
||||
if (devinfo->gen < 6)
|
||||
|
Reference in New Issue
Block a user