summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/compiler
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-01-23 03:38:39 +0100
committerMarek Olšák <[email protected]>2012-01-25 12:35:19 +0100
commit7023ed9e622a3a080ccc6a2739ba1ccd8775a345 (patch)
tree3daf4cf433bdbec8a9d36061952c4f7fccee51d6 /src/gallium/drivers/r300/compiler
parent697b9945fb0f55428b06821f98fd8621372f81ad (diff)
r300g: nuke the fallback for fragment color clamping
Diffstat (limited to 'src/gallium/drivers/r300/compiler')
-rw-r--r--src/gallium/drivers/r300/compiler/r3xx_fragprog.c21
-rw-r--r--src/gallium/drivers/r300/compiler/radeon_code.h2
2 files changed, 0 insertions, 23 deletions
diff --git a/src/gallium/drivers/r300/compiler/r3xx_fragprog.c b/src/gallium/drivers/r300/compiler/r3xx_fragprog.c
index 3bee2b64d35..8fea4db94ea 100644
--- a/src/gallium/drivers/r300/compiler/r3xx_fragprog.c
+++ b/src/gallium/drivers/r300/compiler/r3xx_fragprog.c
@@ -78,32 +78,12 @@ static void rc_rewrite_depth_out(struct radeon_compiler *cc, void *user)
}
}
-static int radeon_saturate_output(
- struct radeon_compiler * c,
- struct rc_instruction * inst,
- void* data)
-{
- const struct rc_opcode_info *info = rc_get_opcode_info(inst->U.I.Opcode);
-
- if (!info->HasDstReg || inst->U.I.DstReg.File != RC_FILE_OUTPUT)
- return 0;
-
- inst->U.I.SaturateMode = RC_SATURATE_ZERO_ONE;
- return 1;
-}
-
void r3xx_compile_fragment_program(struct r300_fragment_program_compiler* c)
{
int is_r500 = c->Base.is_r500;
int opt = !c->Base.disable_optimizations;
- int sat_out = c->state.frag_clamp;
/* Lists of instruction transformations. */
- struct radeon_program_transformation saturate_output[] = {
- { &radeon_saturate_output, c },
- { 0, 0 }
- };
-
struct radeon_program_transformation rewrite_tex[] = {
{ &radeonTransformTEX, c },
{ 0, 0 }
@@ -137,7 +117,6 @@ void r3xx_compile_fragment_program(struct r300_fragment_program_compiler* c)
{"unroll loops", 1, is_r500, rc_unroll_loops, NULL},
{"transform loops", 1, !is_r500, rc_transform_loops, NULL},
{"emulate branches", 1, !is_r500, rc_emulate_branches, NULL},
- {"saturate output writes", 1, sat_out, rc_local_transform, saturate_output},
{"transform TEX", 1, 1, rc_local_transform, rewrite_tex},
{"transform IF", 1, is_r500, rc_local_transform, rewrite_if},
{"native rewrite", 1, is_r500, rc_local_transform, native_rewrite_r500},
diff --git a/src/gallium/drivers/r300/compiler/radeon_code.h b/src/gallium/drivers/r300/compiler/radeon_code.h
index 67e6acf8b10..4280d664f0a 100644
--- a/src/gallium/drivers/r300/compiler/radeon_code.h
+++ b/src/gallium/drivers/r300/compiler/radeon_code.h
@@ -179,8 +179,6 @@ struct r300_fragment_program_external_state {
*/
unsigned convert_unorm_to_snorm:1;
} unit[16];
-
- unsigned frag_clamp:1;
};