radv: run nir_opt_cse before lowering FS intrinsics
Otherwise, there might be redundant barycentric_at_sample intrinsics that will be lowered and this will increase code size. No fossils-db changes. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18615>
This commit is contained in:

committed by
Marge Bot

parent
7e433e25c8
commit
9f0b4da875
@@ -3683,6 +3683,7 @@ radv_postprocess_nir(struct radv_pipeline *pipeline,
|
||||
assert(stage->info.wave_size && stage->info.workgroup_size);
|
||||
|
||||
if (stage->stage == MESA_SHADER_FRAGMENT) {
|
||||
NIR_PASS(_, stage->nir, nir_opt_cse);
|
||||
NIR_PASS(_, stage->nir, radv_lower_fs_intrinsics, stage, pipeline_key);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user