mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
intel/compiler: invalidate metadata in brw_nir_initialize_mue
New "if" blocks may have been inserted. Fixes:bc4f8c073a("intel/compiler: inject MUE initialization") Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15924> (cherry picked from commit5dace41c10)
This commit is contained in:
parent
30a980fb94
commit
9a28aea2a2
2 changed files with 8 additions and 1 deletions
|
|
@ -742,7 +742,7 @@
|
||||||
"description": "intel/compiler: invalidate metadata in brw_nir_initialize_mue",
|
"description": "intel/compiler: invalidate metadata in brw_nir_initialize_mue",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 1,
|
"nomination_type": 1,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": "bc4f8c073a2cf35227df85a1edfce9848b9cdfae"
|
"because_sha": "bc4f8c073a2cf35227df85a1edfce9848b9cdfae"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -584,6 +584,13 @@ brw_nir_initialize_mue(nir_shader *nir,
|
||||||
nir_scoped_barrier(&b, NIR_SCOPE_WORKGROUP, NIR_SCOPE_WORKGROUP,
|
nir_scoped_barrier(&b, NIR_SCOPE_WORKGROUP, NIR_SCOPE_WORKGROUP,
|
||||||
NIR_MEMORY_ACQ_REL, nir_var_shader_out);
|
NIR_MEMORY_ACQ_REL, nir_var_shader_out);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (remaining) {
|
||||||
|
nir_metadata_preserve(entrypoint, nir_metadata_none);
|
||||||
|
} else {
|
||||||
|
nir_metadata_preserve(entrypoint, nir_metadata_block_index |
|
||||||
|
nir_metadata_dominance);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue