BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_SAMPLE_MASK_IN) ||
BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_HELPER_INVOCATION));
+ info->uses_vmem_load_other |= info->base.fs.uses_fbfetch_output;
+
/* Add both front and back color inputs. */
unsigned num_inputs_with_colors = info->num_inputs;
for (unsigned back = 0; back < 2; back++) {
}
}
+ info->uses_vmem_load_other |= info->uses_indirect_descriptor;
+
/* Trim output read masks based on write masks. */
for (unsigned i = 0; i < info->num_outputs; i++)
info->output_readmask[i] &= info->output_usagemask[i];
bool sampler_or_bvh = info->uses_vmem_sampler_or_bvh;
bool other = info->uses_vmem_load_other ||
- info->uses_indirect_descriptor ||
shader->config.scratch_bytes_per_wave ||
(info->stage == MESA_SHADER_FRAGMENT &&
- (info->base.fs.uses_fbfetch_output ||
- shader->key.ps.part.prolog.poly_stipple));
+ shader->key.ps.part.prolog.poly_stipple);
if (prev_info) {
sampler_or_bvh |= prev_info->uses_vmem_sampler_or_bvh;
- other |= prev_info->uses_vmem_load_other ||
- prev_info->uses_indirect_descriptor;
+ other |= prev_info->uses_vmem_load_other;
}
/* Return true if both types of VMEM that return something are used. */