diff --git a/src/panfrost/bifrost/ISA.xml b/src/panfrost/bifrost/ISA.xml index 85ec0b2c364..4241deab2c1 100644 --- a/src/panfrost/bifrost/ISA.xml +++ b/src/panfrost/bifrost/ISA.xml @@ -3713,7 +3713,7 @@ - + diff --git a/src/panfrost/bifrost/bi_helper_invocations.c b/src/panfrost/bifrost/bi_helper_invocations.c index cd0daac2d1d..038f48b11f0 100644 --- a/src/panfrost/bifrost/bi_helper_invocations.c +++ b/src/panfrost/bifrost/bi_helper_invocations.c @@ -99,7 +99,7 @@ bi_instr_uses_helpers(bi_instr *I) return (I->va_lod_mode == BI_VA_LOD_MODE_COMPUTED_LOD) || (I->va_lod_mode == BI_VA_LOD_MODE_COMPUTED_BIAS); case BI_OPCODE_CLPER_I32: - case BI_OPCODE_CLPER_V6_I32: + case BI_OPCODE_CLPER_OLD_I32: /* Fragment shaders require helpers to implement derivatives. * Other shader stages don't have helpers at all */ return true; diff --git a/src/panfrost/bifrost/bi_lower_swizzle.c b/src/panfrost/bifrost/bi_lower_swizzle.c index f31a1c5c69f..542ae353a1e 100644 --- a/src/panfrost/bifrost/bi_lower_swizzle.c +++ b/src/panfrost/bifrost/bi_lower_swizzle.c @@ -49,7 +49,7 @@ bi_lower_swizzle_16(bi_context *ctx, bi_instr *ins, unsigned src) * inherently interpret the data, so it can be used for v2f16 * derivatives, which might require swizzle lowering */ case BI_OPCODE_CLPER_I32: - case BI_OPCODE_CLPER_V6_I32: + case BI_OPCODE_CLPER_OLD_I32: /* Similarly, CSEL.i32 consumes a boolean as a 32-bit argument. If the * boolean is implemented as a 16-bit integer, the swizzle is needed diff --git a/src/panfrost/bifrost/bi_pack.c b/src/panfrost/bifrost/bi_pack.c index bb7552775fa..7f91fad5204 100644 --- a/src/panfrost/bifrost/bi_pack.c +++ b/src/panfrost/bifrost/bi_pack.c @@ -651,7 +651,7 @@ bi_pack_clause(bi_context *ctx, bi_clause *clause, /* Different GPUs support different forms of the CLPER.i32 * instruction. Check we use the right one for the target. */ - if (add && add->op == BI_OPCODE_CLPER_V6_I32) + if (add && add->op == BI_OPCODE_CLPER_OLD_I32) assert(ctx->quirks & BIFROST_LIMITED_CLPER); else if (add && add->op == BI_OPCODE_CLPER_I32) assert(!(ctx->quirks & BIFROST_LIMITED_CLPER)); diff --git a/src/panfrost/bifrost/bi_schedule.c b/src/panfrost/bifrost/bi_schedule.c index 348cc3a3f75..8271beb2b64 100644 --- a/src/panfrost/bifrost/bi_schedule.c +++ b/src/panfrost/bifrost/bi_schedule.c @@ -628,7 +628,7 @@ bi_reads_temps(bi_instr *ins, unsigned src) switch (ins->op) { /* Cannot permute a temporary */ case BI_OPCODE_CLPER_I32: - case BI_OPCODE_CLPER_V6_I32: + case BI_OPCODE_CLPER_OLD_I32: return src != 0; case BI_OPCODE_IMULD: return false; diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 431f4031959..e91c3763ec1 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -2211,7 +2211,7 @@ bi_clper_xor(bi_builder *b, bi_index s0, bi_index s1) bi_index lane_id = bi_fau(BIR_FAU_LANE_ID, false); bi_index lane = bi_lshift_xor_i32(b, lane_id, s1, bi_imm_u8(0)); - return bi_clper_v6_i32(b, s0, lane); + return bi_clper_old_i32(b, s0, lane); } static enum bi_cmpf @@ -2708,8 +2708,8 @@ bi_emit_alu(bi_builder *b, nir_alu_instr *instr) bi_index left, right; if (b->shader->quirks & BIFROST_LIMITED_CLPER) { - left = bi_clper_v6_i32(b, s0, lane1); - right = bi_clper_v6_i32(b, s0, lane2); + left = bi_clper_old_i32(b, s0, lane1); + right = bi_clper_old_i32(b, s0, lane2); } else { left = bi_clper_i32(b, s0, lane1, BI_INACTIVE_RESULT_ZERO, BI_LANE_OP_NONE,