diff options
author | Marek Olšák <[email protected]> | 2012-01-23 03:43:54 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-01-25 12:35:19 +0100 |
commit | c2b800cf38b299c1ab1c53dc0e4ea00c7acef853 (patch) | |
tree | fa2295c0bd94ca8089a6d23bf5664c08a636c5a6 /src/gallium/drivers/r600/r600_shader.c | |
parent | 7023ed9e622a3a080ccc6a2739ba1ccd8775a345 (diff) |
r600g: nuke the fallback for vertex and fragment color clamping
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_shader.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 164b4746c9f..4fe657c9b61 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -835,10 +835,6 @@ static int r600_shader_from_tgsi(struct r600_pipe_context * rctx, struct r600_pi ctx.clip_vertex_write = 0; shader->two_side = (ctx.type == TGSI_PROCESSOR_FRAGMENT) && rctx->two_side; - - shader->clamp_color = (((ctx.type == TGSI_PROCESSOR_FRAGMENT) && rctx->clamp_fragment_color) || - ((ctx.type == TGSI_PROCESSOR_VERTEX) && rctx->clamp_vertex_color)); - shader->nr_cbufs = rctx->nr_cbufs; /* register allocations */ @@ -1034,37 +1030,6 @@ static int r600_shader_from_tgsi(struct r600_pipe_context * rctx, struct r600_pi } } - /* clamp color outputs */ - if (shader->clamp_color) { - for (i = 0; i < noutput; i++) { - if (shader->output[i].name == TGSI_SEMANTIC_COLOR || - shader->output[i].name == TGSI_SEMANTIC_BCOLOR) { - - int j; - for (j = 0; j < 4; j++) { - struct r600_bytecode_alu alu; - memset(&alu, 0, sizeof(struct r600_bytecode_alu)); - - /* MOV_SAT R, R */ - alu.inst = BC_INST(ctx.bc, V_SQ_ALU_WORD1_OP2_SQ_OP2_INST_MOV); - alu.dst.sel = shader->output[i].gpr; - alu.dst.chan = j; - alu.dst.write = 1; - alu.dst.clamp = 1; - alu.src[0].sel = alu.dst.sel; - alu.src[0].chan = j; - - if (j == 3) { - alu.last = 1; - } - r = r600_bytecode_add_alu(ctx.bc, &alu); - if (r) - return r; - } - } - } - } - /* Add stream outputs. */ if (ctx.type == TGSI_PROCESSOR_VERTEX && so.num_outputs) { for (i = 0; i < so.num_outputs; i++) { |