mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 23:48:18 +02:00
jay: Call constant folding before collecting FS outputs
Fixes "multiple stores to the same location" assertions in tests like dEQP-VK.pipeline.monolithic.color_write_enable_maxa.cwe_after_bind.attachments3_more0 In that case, the stores were actually to different locations, but some constant additions hadn't been folded into the location field yet. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41688>
This commit is contained in:
parent
23884ee02c
commit
a56aa9547b
1 changed files with 1 additions and 0 deletions
|
|
@ -332,6 +332,7 @@ jay_process_nir(const struct intel_device_info *devinfo,
|
|||
NIR_PASS(_, nir, nir_shader_intrinsics_pass, lower_frag_coord,
|
||||
nir_metadata_control_flow, NULL);
|
||||
NIR_PASS(_, nir, nir_opt_barycentric, true);
|
||||
NIR_PASS(_, nir, nir_opt_constant_folding);
|
||||
|
||||
lower_fragment_outputs(nir_shader_get_entrypoint(nir), devinfo,
|
||||
key->fs.nr_color_regions, simd_width);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue