diff options
author | Eric Anholt <[email protected]> | 2014-11-12 14:36:19 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2014-11-24 14:56:22 -0800 |
commit | ecfe9e2ad2b5f178ef09420f8d95d49937137cd9 (patch) | |
tree | c80afbfb835dfbf16081e3bcd849a235d9a45700 /src/gallium/drivers | |
parent | dc00b382b58bb3eb94ca393d32bd7eb3bb07d021 (diff) |
gallium: Drop the unused SFL/STR opcodes.
Nothing generated them.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/ilo/shader/toy_tgsi.c | 26 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 6 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c | 6 | ||||
-rw-r--r-- | src/gallium/drivers/r300/r300_tgsi_to_rc.c | 2 | ||||
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 12 |
6 files changed, 6 insertions, 52 deletions
diff --git a/src/gallium/drivers/ilo/shader/toy_tgsi.c b/src/gallium/drivers/ilo/shader/toy_tgsi.c index 8cd1087744b..5989fc4640a 100644 --- a/src/gallium/drivers/ilo/shader/toy_tgsi.c +++ b/src/gallium/drivers/ilo/shader/toy_tgsi.c @@ -651,28 +651,6 @@ aos_PK2H(struct toy_compiler *tc, } static void -aos_SFL(struct toy_compiler *tc, - const struct tgsi_full_instruction *tgsi_inst, - struct toy_dst *dst, - struct toy_src *src) -{ - assert(!"SFL untested"); - - tc_MOV(tc, dst[0], tsrc_imm_f(0.0f)); -} - -static void -aos_STR(struct toy_compiler *tc, - const struct tgsi_full_instruction *tgsi_inst, - struct toy_dst *dst, - struct toy_src *src) -{ - assert(!"STR untested"); - - tc_MOV(tc, dst[0], tsrc_imm_f(1.0f)); -} - -static void aos_UP2H(struct toy_compiler *tc, const struct tgsi_full_instruction *tgsi_inst, struct toy_dst *dst, @@ -839,12 +817,10 @@ static const toy_tgsi_translate aos_translate_table[TGSI_OPCODE_LAST] = { [TGSI_OPCODE_PK4B] = aos_unsupported, [TGSI_OPCODE_PK4UB] = aos_unsupported, [TGSI_OPCODE_SEQ] = aos_set_on_cond, - [TGSI_OPCODE_SFL] = aos_SFL, [TGSI_OPCODE_SGT] = aos_set_on_cond, [TGSI_OPCODE_SIN] = aos_simple, [TGSI_OPCODE_SLE] = aos_set_on_cond, [TGSI_OPCODE_SNE] = aos_set_on_cond, - [TGSI_OPCODE_STR] = aos_STR, [TGSI_OPCODE_TEX] = aos_tex, [TGSI_OPCODE_TXD] = aos_tex, [TGSI_OPCODE_TXP] = aos_tex, @@ -1386,12 +1362,10 @@ static const toy_tgsi_translate soa_translate_table[TGSI_OPCODE_LAST] = { [TGSI_OPCODE_PK4B] = soa_unsupported, [TGSI_OPCODE_PK4UB] = soa_unsupported, [TGSI_OPCODE_SEQ] = soa_per_channel, - [TGSI_OPCODE_SFL] = soa_per_channel, [TGSI_OPCODE_SGT] = soa_per_channel, [TGSI_OPCODE_SIN] = soa_scalar_replicate, [TGSI_OPCODE_SLE] = soa_per_channel, [TGSI_OPCODE_SNE] = soa_per_channel, - [TGSI_OPCODE_STR] = soa_per_channel, [TGSI_OPCODE_TEX] = soa_passthrough, [TGSI_OPCODE_TXD] = soa_passthrough, [TGSI_OPCODE_TXP] = soa_passthrough, diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp index 41b91e890b8..aa7390bc0ec 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp @@ -492,9 +492,6 @@ nv50_ir::CondCode Instruction::getSetCond() const return CC_NEU; case TGSI_OPCODE_USNE: return CC_NE; - case TGSI_OPCODE_SFL: - return CC_NEVER; - case TGSI_OPCODE_STR: default: return CC_ALWAYS; } @@ -537,7 +534,6 @@ static nv50_ir::operation translateOpcode(uint opcode) NV50_IR_OPCODE_CASE(KILL, DISCARD); NV50_IR_OPCODE_CASE(SEQ, SET); - NV50_IR_OPCODE_CASE(SFL, SET); NV50_IR_OPCODE_CASE(SGT, SET); NV50_IR_OPCODE_CASE(SIN, SIN); NV50_IR_OPCODE_CASE(SLE, SET); @@ -2533,11 +2529,9 @@ Converter::handleInstruction(const struct tgsi_full_instruction *insn) case TGSI_OPCODE_SLT: case TGSI_OPCODE_SGE: case TGSI_OPCODE_SEQ: - case TGSI_OPCODE_SFL: case TGSI_OPCODE_SGT: case TGSI_OPCODE_SLE: case TGSI_OPCODE_SNE: - case TGSI_OPCODE_STR: case TGSI_OPCODE_FSEQ: case TGSI_OPCODE_FSGE: case TGSI_OPCODE_FSLT: diff --git a/src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c b/src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c index 522ccc16c58..0fdaa2b54d1 100644 --- a/src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c +++ b/src/gallium/drivers/nouveau/nv30/nvfx_fragprog.c @@ -715,9 +715,6 @@ nvfx_fragprog_parse_instruction(struct nvfx_fpc *fpc, case TGSI_OPCODE_SEQ: nvfx_fp_emit(fpc, arith(sat, SEQ, dst, mask, src[0], src[1], none)); break; - case TGSI_OPCODE_SFL: - nvfx_fp_emit(fpc, arith(sat, SFL, dst, mask, src[0], src[1], none)); - break; case TGSI_OPCODE_SGE: nvfx_fp_emit(fpc, arith(sat, SGE, dst, mask, src[0], src[1], none)); break; @@ -755,9 +752,6 @@ nvfx_fragprog_parse_instruction(struct nvfx_fpc *fpc, } break; } - case TGSI_OPCODE_STR: - nvfx_fp_emit(fpc, arith(sat, STR, dst, mask, src[0], src[1], none)); - break; case TGSI_OPCODE_SUB: nvfx_fp_emit(fpc, arith(sat, ADD, dst, mask, src[0], neg(src[1]), none)); break; diff --git a/src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c b/src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c index 8da2c0cb9de..e880810c8ab 100644 --- a/src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c +++ b/src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c @@ -655,9 +655,6 @@ nvfx_vertprog_parse_instruction(struct nvfx_vpc *vpc, case TGSI_OPCODE_SEQ: nvfx_vp_emit(vpc, arith(sat, VEC, SEQ, dst, mask, src[0], src[1], none)); break; - case TGSI_OPCODE_SFL: - nvfx_vp_emit(vpc, arith(sat, VEC, SFL, dst, mask, src[0], src[1], none)); - break; case TGSI_OPCODE_SGE: nvfx_vp_emit(vpc, arith(sat, VEC, SGE, dst, mask, src[0], src[1], none)); break; @@ -679,9 +676,6 @@ nvfx_vertprog_parse_instruction(struct nvfx_vpc *vpc, case TGSI_OPCODE_SSG: nvfx_vp_emit(vpc, arith(sat, VEC, SSG, dst, mask, src[0], none, none)); break; - case TGSI_OPCODE_STR: - nvfx_vp_emit(vpc, arith(sat, VEC, STR, dst, mask, src[0], src[1], none)); - break; case TGSI_OPCODE_SUB: nvfx_vp_emit(vpc, arith(sat, VEC, ADD, dst, mask, src[0], none, neg(src[1]))); break; diff --git a/src/gallium/drivers/r300/r300_tgsi_to_rc.c b/src/gallium/drivers/r300/r300_tgsi_to_rc.c index 697dd7a8cb3..d9067faea6f 100644 --- a/src/gallium/drivers/r300/r300_tgsi_to_rc.c +++ b/src/gallium/drivers/r300/r300_tgsi_to_rc.c @@ -72,12 +72,10 @@ static unsigned translate_opcode(unsigned opcode) /* case TGSI_OPCODE_PK4B: return RC_OPCODE_PK4B; */ /* case TGSI_OPCODE_PK4UB: return RC_OPCODE_PK4UB; */ case TGSI_OPCODE_SEQ: return RC_OPCODE_SEQ; - case TGSI_OPCODE_SFL: return RC_OPCODE_SFL; case TGSI_OPCODE_SGT: return RC_OPCODE_SGT; case TGSI_OPCODE_SIN: return RC_OPCODE_SIN; case TGSI_OPCODE_SLE: return RC_OPCODE_SLE; case TGSI_OPCODE_SNE: return RC_OPCODE_SNE; - /* case TGSI_OPCODE_STR: return RC_OPCODE_STR; */ case TGSI_OPCODE_TEX: return RC_OPCODE_TEX; case TGSI_OPCODE_TXD: return RC_OPCODE_TXD; case TGSI_OPCODE_TXP: return RC_OPCODE_TXP; diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 6f967b5c53e..24fed848e94 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -7234,12 +7234,12 @@ static struct r600_shader_tgsi_instruction r600_shader_tgsi_instruction[] = { {TGSI_OPCODE_PK4UB, 0, ALU_OP0_NOP, tgsi_unsupported}, {44, 0, ALU_OP0_NOP, tgsi_unsupported}, {TGSI_OPCODE_SEQ, 0, ALU_OP2_SETE, tgsi_op2}, - {TGSI_OPCODE_SFL, 0, ALU_OP0_NOP, tgsi_unsupported}, + {46, 0, ALU_OP0_NOP, tgsi_unsupported}, {TGSI_OPCODE_SGT, 0, ALU_OP2_SETGT, tgsi_op2}, {TGSI_OPCODE_SIN, 0, ALU_OP1_SIN, tgsi_trig}, {TGSI_OPCODE_SLE, 0, ALU_OP2_SETGE, tgsi_op2_swap}, {TGSI_OPCODE_SNE, 0, ALU_OP2_SETNE, tgsi_op2}, - {TGSI_OPCODE_STR, 0, ALU_OP0_NOP, tgsi_unsupported}, + {51, 0, ALU_OP0_NOP, tgsi_unsupported}, {TGSI_OPCODE_TEX, 0, FETCH_OP_SAMPLE, tgsi_tex}, {TGSI_OPCODE_TXD, 0, FETCH_OP_SAMPLE_G, tgsi_tex}, {TGSI_OPCODE_TXP, 0, FETCH_OP_SAMPLE, tgsi_tex}, @@ -7433,12 +7433,12 @@ static struct r600_shader_tgsi_instruction eg_shader_tgsi_instruction[] = { {TGSI_OPCODE_PK4UB, 0, ALU_OP0_NOP, tgsi_unsupported}, {44, 0, ALU_OP0_NOP, tgsi_unsupported}, {TGSI_OPCODE_SEQ, 0, ALU_OP2_SETE, tgsi_op2}, - {TGSI_OPCODE_SFL, 0, ALU_OP0_NOP, tgsi_unsupported}, + {46, 0, ALU_OP0_NOP, tgsi_unsupported}, {TGSI_OPCODE_SGT, 0, ALU_OP2_SETGT, tgsi_op2}, {TGSI_OPCODE_SIN, 0, ALU_OP1_SIN, tgsi_trig}, {TGSI_OPCODE_SLE, 0, ALU_OP2_SETGE, tgsi_op2_swap}, {TGSI_OPCODE_SNE, 0, ALU_OP2_SETNE, tgsi_op2}, - {TGSI_OPCODE_STR, 0, ALU_OP0_NOP, tgsi_unsupported}, + {51, 0, ALU_OP0_NOP, tgsi_unsupported}, {TGSI_OPCODE_TEX, 0, FETCH_OP_SAMPLE, tgsi_tex}, {TGSI_OPCODE_TXD, 0, FETCH_OP_SAMPLE_G, tgsi_tex}, {TGSI_OPCODE_TXP, 0, FETCH_OP_SAMPLE, tgsi_tex}, @@ -7632,12 +7632,12 @@ static struct r600_shader_tgsi_instruction cm_shader_tgsi_instruction[] = { {TGSI_OPCODE_PK4UB, 0, ALU_OP0_NOP, tgsi_unsupported}, {44, 0, ALU_OP0_NOP, tgsi_unsupported}, {TGSI_OPCODE_SEQ, 0, ALU_OP2_SETE, tgsi_op2}, - {TGSI_OPCODE_SFL, 0, ALU_OP0_NOP, tgsi_unsupported}, + {46, 0, ALU_OP0_NOP, tgsi_unsupported}, {TGSI_OPCODE_SGT, 0, ALU_OP2_SETGT, tgsi_op2}, {TGSI_OPCODE_SIN, 0, ALU_OP1_SIN, cayman_trig}, {TGSI_OPCODE_SLE, 0, ALU_OP2_SETGE, tgsi_op2_swap}, {TGSI_OPCODE_SNE, 0, ALU_OP2_SETNE, tgsi_op2}, - {TGSI_OPCODE_STR, 0, ALU_OP0_NOP, tgsi_unsupported}, + {51, 0, ALU_OP0_NOP, tgsi_unsupported}, {TGSI_OPCODE_TEX, 0, FETCH_OP_SAMPLE, tgsi_tex}, {TGSI_OPCODE_TXD, 0, FETCH_OP_SAMPLE_G, tgsi_tex}, {TGSI_OPCODE_TXP, 0, FETCH_OP_SAMPLE, tgsi_tex}, |