diff options
author | Marek Olšák <[email protected]> | 2017-02-16 18:01:53 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-02-18 02:58:43 +0100 |
commit | ad019bf5c65fbc10505c84c43050b5299192ca03 (patch) | |
tree | 353e0acbb18df22605d7b5564d393d08d3531f81 /src/gallium/auxiliary/gallivm | |
parent | 675ef9c0c7d178438f0901e3c13c381828b3c139 (diff) |
gallium: remove TGSI_OPCODE_CLAMP
Not used and not widely supported. Use MIN+MAX instead.
Reviewed-by: Dave Airlie <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c | 16 | ||||
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c | 8 |
2 files changed, 0 insertions, 24 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c index e78cdb011ab..dc6568a2d4b 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c @@ -110,21 +110,6 @@ arr_emit( bld_base->uint_bld.vec_type, ""); } -/* TGSI_OPCODE_CLAMP */ -static void -clamp_emit( - const struct lp_build_tgsi_action * action, - struct lp_build_tgsi_context * bld_base, - struct lp_build_emit_data * emit_data) -{ - LLVMValueRef tmp; - tmp = lp_build_emit_llvm_binary(bld_base, TGSI_OPCODE_MAX, - emit_data->args[0], - emit_data->args[1]); - emit_data->output[emit_data->chan] = lp_build_emit_llvm_binary(bld_base, - TGSI_OPCODE_MIN, tmp, emit_data->args[2]); -} - /* DP* Helper */ static void @@ -1330,7 +1315,6 @@ lp_set_default_actions(struct lp_build_tgsi_context * bld_base) bld_base->op_actions[TGSI_OPCODE_ADD].emit = add_emit; bld_base->op_actions[TGSI_OPCODE_ARR].emit = arr_emit; - bld_base->op_actions[TGSI_OPCODE_CLAMP].emit = clamp_emit; bld_base->op_actions[TGSI_OPCODE_END].emit = end_emit; bld_base->op_actions[TGSI_OPCODE_FRC].emit = frc_emit; bld_base->op_actions[TGSI_OPCODE_LRP].emit = lrp_emit; diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c index 6c177b02cb1..2bd42916e50 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c @@ -609,14 +609,6 @@ lp_emit_instruction_aos( dst0 = lp_build_sub(&bld->bld_base.base, src0, tmp0); break; - case TGSI_OPCODE_CLAMP: - src0 = lp_build_emit_fetch(&bld->bld_base, inst, 0, LP_CHAN_ALL); - src1 = lp_build_emit_fetch(&bld->bld_base, inst, 1, LP_CHAN_ALL); - src2 = lp_build_emit_fetch(&bld->bld_base, inst, 2, LP_CHAN_ALL); - tmp0 = lp_build_max(&bld->bld_base.base, src0, src1); - dst0 = lp_build_min(&bld->bld_base.base, tmp0, src2); - break; - case TGSI_OPCODE_FLR: src0 = lp_build_emit_fetch(&bld->bld_base, inst, 0, LP_CHAN_ALL); dst0 = lp_build_floor(&bld->bld_base.base, src0); |