mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 20:40:09 +01:00
r300: remove backend support for SUB
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com> Reviewed-by: Filip Gawin <filip.gawin@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27089>
This commit is contained in:
parent
18a0ff121e
commit
337fbab9ce
4 changed files with 3 additions and 25 deletions
|
|
@ -145,7 +145,9 @@ static void r500_transform_IF_instr(
|
|||
break;
|
||||
}
|
||||
if (!preserve_opcode) {
|
||||
writer->Inst->U.I.Opcode = RC_OPCODE_SUB;
|
||||
writer->Inst->U.I.Opcode = RC_OPCODE_ADD;
|
||||
writer->Inst->U.I.SrcReg[1].Negate =
|
||||
~writer->Inst->U.I.SrcReg[1].Negate;
|
||||
}
|
||||
writer->Inst->U.I.DstReg.WriteMask = 0;
|
||||
writer->Inst->U.I.DstReg.File = RC_FILE_NONE;
|
||||
|
|
|
|||
|
|
@ -261,13 +261,6 @@ const struct rc_opcode_info rc_opcodes[MAX_RC_OPCODE] = {
|
|||
.HasDstReg = 1,
|
||||
.IsComponentwise = 1
|
||||
},
|
||||
{
|
||||
.Opcode = RC_OPCODE_SUB,
|
||||
.Name = "SUB",
|
||||
.NumSrcRegs = 2,
|
||||
.HasDstReg = 1,
|
||||
.IsComponentwise = 1
|
||||
},
|
||||
{
|
||||
.Opcode = RC_OPCODE_TEX,
|
||||
.Name = "TEX",
|
||||
|
|
|
|||
|
|
@ -140,9 +140,6 @@ typedef enum {
|
|||
/** vec4 instruction: dst.c = (src0.c != src1.c) ? 1.0 : 0.0 */
|
||||
RC_OPCODE_SNE,
|
||||
|
||||
/** vec4 instruction: dst.c = src0.c - src1.c */
|
||||
RC_OPCODE_SUB,
|
||||
|
||||
RC_OPCODE_TEX,
|
||||
RC_OPCODE_TXB,
|
||||
RC_OPCODE_TXD,
|
||||
|
|
|
|||
|
|
@ -213,13 +213,6 @@ static void transform_RSQ(struct radeon_compiler* c,
|
|||
inst->U.I.SrcReg[0] = absolute(inst->U.I.SrcReg[0]);
|
||||
}
|
||||
|
||||
static void transform_SUB(struct radeon_compiler* c,
|
||||
struct rc_instruction* inst)
|
||||
{
|
||||
inst->U.I.Opcode = RC_OPCODE_ADD;
|
||||
inst->U.I.SrcReg[1] = negate(inst->U.I.SrcReg[1]);
|
||||
}
|
||||
|
||||
static void transform_KILP(struct radeon_compiler * c,
|
||||
struct rc_instruction * inst)
|
||||
{
|
||||
|
|
@ -231,11 +224,6 @@ static void transform_KILP(struct radeon_compiler * c,
|
|||
* Can be used as a transformation for @ref radeonClauseLocalTransform,
|
||||
* no userData necessary.
|
||||
*
|
||||
* Eliminates the following ALU instructions:
|
||||
* SUB
|
||||
* using:
|
||||
* ADD
|
||||
*
|
||||
* Transforms RSQ to Radeon's native RSQ by explicitly setting
|
||||
* absolute value.
|
||||
*
|
||||
|
|
@ -254,7 +242,6 @@ int radeonTransformALU(
|
|||
case RC_OPCODE_SGE: unreachable();
|
||||
case RC_OPCODE_SLT: unreachable();
|
||||
case RC_OPCODE_SNE: unreachable();
|
||||
case RC_OPCODE_SUB: transform_SUB(c, inst); return 1;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -398,7 +385,6 @@ int r300_transform_vertex_alu(
|
|||
return 1;
|
||||
}
|
||||
return 0;
|
||||
case RC_OPCODE_SUB: transform_SUB(c, inst); return 1;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue