brw: elk: Fix name of function in comment

Trivial.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37186>
This commit is contained in:
Ian Romanick
2025-09-08 09:12:21 -07:00
committed by Marge Bot
parent 1e691e68e2
commit ca493b5c45
2 changed files with 12 additions and 12 deletions
+6 -6
View File
@@ -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;
+6 -6
View File
@@ -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;