From ca493b5c4535862677b786f702e6c66a4e2e216a Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 8 Sep 2025 09:12:21 -0700 Subject: [PATCH] brw: elk: Fix name of function in comment Trivial. Part-of: --- src/intel/compiler/brw/brw_from_nir.cpp | 12 ++++++------ src/intel/compiler/elk/elk_fs_nir.cpp | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/intel/compiler/brw/brw_from_nir.cpp b/src/intel/compiler/brw/brw_from_nir.cpp index ee543f4c010..2a6622cf4eb 100644 --- a/src/intel/compiler/brw/brw_from_nir.cpp +++ b/src/intel/compiler/brw/brw_from_nir.cpp @@ -931,7 +931,7 @@ brw_from_nir_emit_alu(nir_to_brw_state &ntb, nir_alu_instr *instr, #ifndef NDEBUG /* Everything except raw moves, some type conversions, iabs, and ineg * should have 8-bit sources lowered by nir_lower_bit_size in - * brw_preprocess_nir or by brw_nir_lower_conversions in + * brw_preprocess_nir or by nir_split_conversion in * brw_postprocess_nir. */ switch (instr->op) { @@ -1048,7 +1048,7 @@ brw_from_nir_emit_alu(nir_to_brw_state &ntb, nir_alu_instr *instr, if (BRW_RND_MODE_UNSPECIFIED != rnd) bld.exec_all().emit(SHADER_OPCODE_RND_MODE, bld.null_reg_ud(), brw_imm_d(rnd)); - assert(brw_type_size_bytes(op[0].type) < 8); /* brw_nir_lower_conversions */ + assert(brw_type_size_bytes(op[0].type) < 8); /* nir_split_conversion */ bld.MOV(result, op[0]); break; } @@ -1091,19 +1091,19 @@ brw_from_nir_emit_alu(nir_to_brw_state &ntb, nir_alu_instr *instr, if (result.type == BRW_TYPE_B || result.type == BRW_TYPE_UB || result.type == BRW_TYPE_HF) - assert(brw_type_size_bytes(op[0].type) < 8); /* brw_nir_lower_conversions */ + assert(brw_type_size_bytes(op[0].type) < 8); /* nir_split_conversion */ if (op[0].type == BRW_TYPE_B || op[0].type == BRW_TYPE_UB || op[0].type == BRW_TYPE_HF) - assert(brw_type_size_bytes(result.type) < 8); /* brw_nir_lower_conversions */ + assert(brw_type_size_bytes(result.type) < 8); /* nir_split_conversion */ bld.MOV(result, op[0]); break; case nir_op_i2i8: case nir_op_u2u8: - assert(brw_type_size_bytes(op[0].type) < 8); /* brw_nir_lower_conversions */ + assert(brw_type_size_bytes(op[0].type) < 8); /* nir_split_conversion */ FALLTHROUGH; case nir_op_i2i16: case nir_op_u2u16: { @@ -1176,7 +1176,7 @@ brw_from_nir_emit_alu(nir_to_brw_state &ntb, nir_alu_instr *instr, } if (op[0].type == BRW_TYPE_HF) - assert(brw_type_size_bytes(result.type) < 8); /* brw_nir_lower_conversions */ + assert(brw_type_size_bytes(result.type) < 8); /* nir_split_conversion */ bld.MOV(result, op[0]); break; diff --git a/src/intel/compiler/elk/elk_fs_nir.cpp b/src/intel/compiler/elk/elk_fs_nir.cpp index fc9907d32a9..e1ee27520e1 100644 --- a/src/intel/compiler/elk/elk_fs_nir.cpp +++ b/src/intel/compiler/elk/elk_fs_nir.cpp @@ -923,7 +923,7 @@ fs_nir_emit_alu(nir_to_elk_state &ntb, nir_alu_instr *instr, #ifndef NDEBUG /* Everything except raw moves, some type conversions, iabs, and ineg * should have 8-bit sources lowered by nir_lower_bit_size in - * elk_preprocess_nir or by elk_nir_lower_conversions in + * elk_preprocess_nir or by nir_split_conversion in * elk_postprocess_nir. */ switch (instr->op) { @@ -1032,7 +1032,7 @@ fs_nir_emit_alu(nir_to_elk_state &ntb, nir_alu_instr *instr, if (ELK_RND_MODE_UNSPECIFIED != rnd) bld.exec_all().emit(ELK_SHADER_OPCODE_RND_MODE, bld.null_reg_ud(), elk_imm_d(rnd)); - assert(type_sz(op[0].type) < 8); /* elk_nir_lower_conversions */ + assert(type_sz(op[0].type) < 8); /* nir_split_conversion */ inst = bld.F32TO16(result, op[0]); break; } @@ -1075,19 +1075,19 @@ fs_nir_emit_alu(nir_to_elk_state &ntb, nir_alu_instr *instr, if (result.type == ELK_REGISTER_TYPE_B || result.type == ELK_REGISTER_TYPE_UB || result.type == ELK_REGISTER_TYPE_HF) - assert(type_sz(op[0].type) < 8); /* elk_nir_lower_conversions */ + assert(type_sz(op[0].type) < 8); /* nir_split_conversion */ if (op[0].type == ELK_REGISTER_TYPE_B || op[0].type == ELK_REGISTER_TYPE_UB || op[0].type == ELK_REGISTER_TYPE_HF) - assert(type_sz(result.type) < 8); /* elk_nir_lower_conversions */ + assert(type_sz(result.type) < 8); /* nir_split_conversion */ inst = bld.MOV(result, op[0]); break; case nir_op_i2i8: case nir_op_u2u8: - assert(type_sz(op[0].type) < 8); /* elk_nir_lower_conversions */ + assert(type_sz(op[0].type) < 8); /* nir_split_conversion */ FALLTHROUGH; case nir_op_i2i16: case nir_op_u2u16: { @@ -1150,7 +1150,7 @@ fs_nir_emit_alu(nir_to_elk_state &ntb, nir_alu_instr *instr, } if (op[0].type == ELK_REGISTER_TYPE_HF) - assert(type_sz(result.type) < 8); /* elk_nir_lower_conversions */ + assert(type_sz(result.type) < 8); /* nir_split_conversion */ inst = bld.MOV(result, op[0]); break;