diff --git a/src/gallium/drivers/zink/ci/traces-zink.yml b/src/gallium/drivers/zink/ci/traces-zink.yml index 26b0eb73b59..69be0b64f42 100644 --- a/src/gallium/drivers/zink/ci/traces-zink.yml +++ b/src/gallium/drivers/zink/ci/traces-zink.yml @@ -35,7 +35,7 @@ traces: checksum: 433b69bea68cfe81914b857bbdc60ea5 gputest/pixmark-piano-v2.trace: gl-zink-anv-tgl: - checksum: 897c704551c305c1cfb7cc6293cd495d + checksum: 096ff1ec0d3bec4e70ff6d23baabb795 gputest/triangle-v2.trace: gl-zink-anv-tgl: checksum: 5f694874b15bcd7a3689b387c143590b diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp index 0a2f88869c8..b98e6bf0efd 100644 --- a/src/intel/compiler/brw_fs_nir.cpp +++ b/src/intel/compiler/brw_fs_nir.cpp @@ -4364,7 +4364,6 @@ fs_visitor::nir_emit_intrinsic(const fs_builder &bld, nir_intrinsic_instr *instr /* Re-use the destination's slot in the table for the register */ nir_ssa_values[instr->dest.ssa.index] = bld.vgrf(reg_type, num_components); - bld.UNDEF(nir_ssa_values[instr->dest.ssa.index]); return; } diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index bc06cb4bf0f..0bca69a5894 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -1706,7 +1706,7 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler, OPT(nir_copy_prop); OPT(nir_opt_dce); - OPT(nir_lower_locals_to_regs, 32); + OPT(nir_lower_locals_to_reg_intrinsics, 32); if (unlikely(debug_enabled)) { /* Re-index SSA defs so we print more sensible numbers. */ @@ -1721,11 +1721,11 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler, nir_validate_ssa_dominance(nir, "before nir_convert_from_ssa"); - OPT(nir_convert_from_ssa, true, false); + OPT(nir_convert_from_ssa, true, true); if (!is_scalar) { OPT(nir_move_vec_src_uses_to_dest); - OPT(nir_lower_vec_to_movs, NULL, NULL); + OPT(nir_lower_vec_to_regs, NULL, NULL); } OPT(nir_opt_dce); @@ -1741,6 +1741,8 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler, if (devinfo->ver <= 5) brw_nir_analyze_boolean_resolves(nir); + OPT(nir_opt_dce); + nir_trivialize_registers(nir); nir_sweep(nir); if (unlikely(debug_enabled)) {