gallium: Eliminate TGSI_OPCODE_IFC.
Never used or implemented. Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
@@ -389,7 +389,6 @@ analyse_instruction(struct analysis_context *ctx,
|
||||
|
||||
switch (inst->Instruction.Opcode) {
|
||||
case TGSI_OPCODE_IF:
|
||||
case TGSI_OPCODE_IFC:
|
||||
case TGSI_OPCODE_ELSE:
|
||||
case TGSI_OPCODE_ENDIF:
|
||||
case TGSI_OPCODE_BGNLOOP:
|
||||
|
@@ -1732,7 +1732,6 @@ near_end_of_shader(struct lp_build_tgsi_soa_context *bld,
|
||||
opcode == TGSI_OPCODE_CAL ||
|
||||
opcode == TGSI_OPCODE_CALLNZ ||
|
||||
opcode == TGSI_OPCODE_IF ||
|
||||
opcode == TGSI_OPCODE_IFC ||
|
||||
opcode == TGSI_OPCODE_BGNLOOP ||
|
||||
opcode == TGSI_OPCODE_SWITCH)
|
||||
return FALSE;
|
||||
|
@@ -151,7 +151,7 @@ static const struct tgsi_opcode_info opcode_info[TGSI_OPCODE_LAST] =
|
||||
{ 0, 0, 0, 0, 0, 0, NONE, "", 111 }, /* removed */
|
||||
{ 1, 1, 0, 0, 0, 0, REPL, "NRM4", TGSI_OPCODE_NRM4 },
|
||||
{ 0, 1, 0, 0, 0, 0, NONE, "CALLNZ", TGSI_OPCODE_CALLNZ },
|
||||
{ 0, 1, 0, 0, 0, 0, NONE, "IFC", TGSI_OPCODE_IFC },
|
||||
{ 0, 1, 0, 0, 0, 0, NONE, "", 114 }, /* removed */
|
||||
{ 0, 1, 0, 0, 0, 0, NONE, "BREAKC", TGSI_OPCODE_BREAKC },
|
||||
{ 0, 1, 0, 0, 0, 0, NONE, "KIL", TGSI_OPCODE_KIL },
|
||||
{ 0, 0, 0, 0, 0, 0, NONE, "END", TGSI_OPCODE_END },
|
||||
|
@@ -154,7 +154,6 @@ OP00(ENDSUB)
|
||||
OP00(NOP)
|
||||
OP11(NRM4)
|
||||
OP01(CALLNZ)
|
||||
OP01(IFC)
|
||||
OP01(BREAKC)
|
||||
OP01(KIL)
|
||||
OP00(END)
|
||||
|
@@ -1198,11 +1198,6 @@ XXX wait what
|
||||
TBD
|
||||
|
||||
|
||||
.. opcode:: IFC - If
|
||||
|
||||
TBD
|
||||
|
||||
|
||||
.. opcode:: BREAKC - Break Conditional
|
||||
|
||||
TBD
|
||||
|
@@ -135,7 +135,6 @@ static unsigned translate_opcode(unsigned opcode)
|
||||
/* gap */
|
||||
/* case TGSI_OPCODE_NRM4: return RC_OPCODE_NRM4; */
|
||||
/* case TGSI_OPCODE_CALLNZ: return RC_OPCODE_CALLNZ; */
|
||||
/* case TGSI_OPCODE_IFC: return RC_OPCODE_IFC; */
|
||||
/* case TGSI_OPCODE_BREAKC: return RC_OPCODE_BREAKC; */
|
||||
case TGSI_OPCODE_KIL: return RC_OPCODE_KIL;
|
||||
}
|
||||
|
@@ -6047,7 +6047,8 @@ static struct r600_shader_tgsi_instruction r600_shader_tgsi_instruction[] = {
|
||||
{111, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_NRM4, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_CALLNZ, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_IFC, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
/* gap */
|
||||
{114, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_BREAKC, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_KIL, 0, ALU_OP2_KILLGT, tgsi_kill}, /* conditional kill */
|
||||
{TGSI_OPCODE_END, 0, ALU_OP0_NOP, tgsi_end}, /* aka HALT */
|
||||
@@ -6240,7 +6241,8 @@ static struct r600_shader_tgsi_instruction eg_shader_tgsi_instruction[] = {
|
||||
{111, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_NRM4, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_CALLNZ, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_IFC, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
/* gap */
|
||||
{114, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_BREAKC, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_KIL, 0, ALU_OP2_KILLGT, tgsi_kill}, /* conditional kill */
|
||||
{TGSI_OPCODE_END, 0, ALU_OP0_NOP, tgsi_end}, /* aka HALT */
|
||||
@@ -6433,7 +6435,8 @@ static struct r600_shader_tgsi_instruction cm_shader_tgsi_instruction[] = {
|
||||
{111, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_NRM4, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_CALLNZ, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_IFC, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
/* gap */
|
||||
{114, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_BREAKC, 0, ALU_OP0_NOP, tgsi_unsupported},
|
||||
{TGSI_OPCODE_KIL, 0, ALU_OP2_KILLGT, tgsi_kill}, /* conditional kill */
|
||||
{TGSI_OPCODE_END, 0, ALU_OP0_NOP, tgsi_end}, /* aka HALT */
|
||||
|
@@ -367,7 +367,7 @@ struct tgsi_property_data {
|
||||
/* gap */
|
||||
#define TGSI_OPCODE_NRM4 112
|
||||
#define TGSI_OPCODE_CALLNZ 113
|
||||
#define TGSI_OPCODE_IFC 114
|
||||
/* gap */
|
||||
#define TGSI_OPCODE_BREAKC 115
|
||||
#define TGSI_OPCODE_KIL 116 /* conditional kill */
|
||||
#define TGSI_OPCODE_END 117 /* aka HALT */
|
||||
|
Reference in New Issue
Block a user