gallium: remove TGSI_OPCODE_CALLNZ
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
This commit is contained in:
@@ -441,7 +441,6 @@ analyse_instruction(struct analysis_context *ctx,
|
||||
case TGSI_OPCODE_BREAKC:
|
||||
case TGSI_OPCODE_CONT:
|
||||
case TGSI_OPCODE_ENDLOOP:
|
||||
case TGSI_OPCODE_CALLNZ:
|
||||
case TGSI_OPCODE_CAL:
|
||||
case TGSI_OPCODE_BGNSUB:
|
||||
case TGSI_OPCODE_ENDSUB:
|
||||
|
||||
@@ -2664,7 +2664,6 @@ near_end_of_shader(struct lp_build_tgsi_soa_context *bld,
|
||||
opcode == TGSI_OPCODE_SAMPLE_L ||
|
||||
opcode == TGSI_OPCODE_SVIEWINFO ||
|
||||
opcode == TGSI_OPCODE_CAL ||
|
||||
opcode == TGSI_OPCODE_CALLNZ ||
|
||||
opcode == TGSI_OPCODE_IF ||
|
||||
opcode == TGSI_OPCODE_UIF ||
|
||||
opcode == TGSI_OPCODE_BGNLOOP ||
|
||||
|
||||
@@ -1617,7 +1617,6 @@ static const nir_op op_trans[TGSI_OPCODE_LAST] = {
|
||||
[TGSI_OPCODE_FSNE] = nir_op_fne,
|
||||
|
||||
/* No control flow yet */
|
||||
[TGSI_OPCODE_CALLNZ] = 0, /* XXX */
|
||||
[TGSI_OPCODE_BREAKC] = 0, /* not emitted by glsl_to_tgsi.cpp */
|
||||
|
||||
[TGSI_OPCODE_KILL_IF] = 0,
|
||||
|
||||
@@ -150,7 +150,7 @@ static const struct tgsi_opcode_info opcode_info[TGSI_OPCODE_LAST] =
|
||||
{ 1, 2, 0, 0, 0, 0, 0, COMP, "FSLT", TGSI_OPCODE_FSLT },
|
||||
{ 1, 2, 0, 0, 0, 0, 0, COMP, "FSNE", TGSI_OPCODE_FSNE },
|
||||
{ 0, 1, 0, 0, 0, 0, 0, OTHR, "MEMBAR", TGSI_OPCODE_MEMBAR },
|
||||
{ 0, 1, 0, 0, 0, 0, 0, NONE, "CALLNZ", TGSI_OPCODE_CALLNZ },
|
||||
{ 0, 1, 0, 0, 0, 0, 0, NONE, "", 113 }, /* removed */
|
||||
{ 0, 1, 0, 0, 0, 0, 0, NONE, "", 114 }, /* removed */
|
||||
{ 0, 1, 0, 0, 0, 0, 0, NONE, "BREAKC", TGSI_OPCODE_BREAKC },
|
||||
{ 0, 1, 0, 0, 0, 0, 0, NONE, "KILL_IF", TGSI_OPCODE_KILL_IF },
|
||||
|
||||
@@ -122,7 +122,6 @@ OP00(BGNSUB)
|
||||
OP00_LBL(ENDLOOP)
|
||||
OP00(ENDSUB)
|
||||
OP00(NOP)
|
||||
OP01(CALLNZ)
|
||||
OP01(BREAKC)
|
||||
OP01(KILL_IF)
|
||||
OP00(END)
|
||||
|
||||
@@ -835,19 +835,6 @@ This instruction replicates its result.
|
||||
dst = texture\_sample(unit, coord, lod)
|
||||
|
||||
|
||||
.. opcode:: CALLNZ - Subroutine Call If Not Zero
|
||||
|
||||
TBD
|
||||
|
||||
.. note::
|
||||
|
||||
Considered for cleanup.
|
||||
|
||||
.. note::
|
||||
|
||||
Considered for removal.
|
||||
|
||||
|
||||
Compute ISA
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
||||
@@ -118,7 +118,6 @@ static unsigned translate_opcode(unsigned opcode)
|
||||
/* case TGSI_OPCODE_ENDLOOP2: return RC_OPCODE_ENDLOOP2; */
|
||||
/* case TGSI_OPCODE_ENDSUB: return RC_OPCODE_ENDSUB; */
|
||||
case TGSI_OPCODE_NOP: return RC_OPCODE_NOP;
|
||||
/* case TGSI_OPCODE_CALLNZ: return RC_OPCODE_CALLNZ; */
|
||||
/* case TGSI_OPCODE_BREAKC: return RC_OPCODE_BREAKC; */
|
||||
case TGSI_OPCODE_KILL_IF: return RC_OPCODE_KIL;
|
||||
}
|
||||
|
||||
@@ -9181,7 +9181,7 @@ static const struct r600_shader_tgsi_instruction r600_shader_tgsi_instruction[]
|
||||
[TGSI_OPCODE_FSLT] = { ALU_OP2_SETGT_DX10, tgsi_op2_swap},
|
||||
[TGSI_OPCODE_FSNE] = { ALU_OP2_SETNE_DX10, tgsi_op2_swap},
|
||||
[TGSI_OPCODE_MEMBAR] = { ALU_OP0_NOP, tgsi_unsupported},
|
||||
[TGSI_OPCODE_CALLNZ] = { ALU_OP0_NOP, tgsi_unsupported},
|
||||
[113] = { ALU_OP0_NOP, tgsi_unsupported},
|
||||
[114] = { ALU_OP0_NOP, tgsi_unsupported},
|
||||
[TGSI_OPCODE_BREAKC] = { ALU_OP0_NOP, tgsi_loop_breakc},
|
||||
[TGSI_OPCODE_KILL_IF] = { ALU_OP2_KILLGT, tgsi_kill}, /* conditional kill */
|
||||
@@ -9379,7 +9379,7 @@ static const struct r600_shader_tgsi_instruction eg_shader_tgsi_instruction[] =
|
||||
[TGSI_OPCODE_FSLT] = { ALU_OP2_SETGT_DX10, tgsi_op2_swap},
|
||||
[TGSI_OPCODE_FSNE] = { ALU_OP2_SETNE_DX10, tgsi_op2_swap},
|
||||
[TGSI_OPCODE_MEMBAR] = { ALU_OP0_NOP, tgsi_unsupported},
|
||||
[TGSI_OPCODE_CALLNZ] = { ALU_OP0_NOP, tgsi_unsupported},
|
||||
[113] = { ALU_OP0_NOP, tgsi_unsupported},
|
||||
[114] = { ALU_OP0_NOP, tgsi_unsupported},
|
||||
[TGSI_OPCODE_BREAKC] = { ALU_OP0_NOP, tgsi_unsupported},
|
||||
[TGSI_OPCODE_KILL_IF] = { ALU_OP2_KILLGT, tgsi_kill}, /* conditional kill */
|
||||
@@ -9602,7 +9602,7 @@ static const struct r600_shader_tgsi_instruction cm_shader_tgsi_instruction[] =
|
||||
[TGSI_OPCODE_FSLT] = { ALU_OP2_SETGT_DX10, tgsi_op2_swap},
|
||||
[TGSI_OPCODE_FSNE] = { ALU_OP2_SETNE_DX10, tgsi_op2_swap},
|
||||
[TGSI_OPCODE_MEMBAR] = { ALU_OP0_NOP, tgsi_unsupported},
|
||||
[TGSI_OPCODE_CALLNZ] = { ALU_OP0_NOP, tgsi_unsupported},
|
||||
[113] = { ALU_OP0_NOP, tgsi_unsupported},
|
||||
[114] = { ALU_OP0_NOP, tgsi_unsupported},
|
||||
[TGSI_OPCODE_BREAKC] = { ALU_OP0_NOP, tgsi_unsupported},
|
||||
[TGSI_OPCODE_KILL_IF] = { ALU_OP2_KILLGT, tgsi_kill}, /* conditional kill */
|
||||
|
||||
@@ -452,7 +452,6 @@ struct tgsi_property_data {
|
||||
#define TGSI_OPCODE_FSNE 111
|
||||
|
||||
#define TGSI_OPCODE_MEMBAR 112
|
||||
#define TGSI_OPCODE_CALLNZ 113
|
||||
/* gap */
|
||||
#define TGSI_OPCODE_BREAKC 115
|
||||
#define TGSI_OPCODE_KILL_IF 116 /* conditional kill */
|
||||
|
||||
Reference in New Issue
Block a user