diff --git a/src/intel/compiler/brw/brw_nir.c b/src/intel/compiler/brw/brw_nir.c index 7c11c411dbe..92d39d1003b 100644 --- a/src/intel/compiler/brw/brw_nir.c +++ b/src/intel/compiler/brw/brw_nir.c @@ -2383,6 +2383,7 @@ brw_postprocess_nir_opts(nir_shader *nir, const struct brw_compiler *compiler, nir_foreach_function_impl(impl, nir) { nir_divergence_analysis_impl(impl, options); + impl->valid_metadata |= nir_metadata_divergence; } nir_shader_instructions_pass(nir,