diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2012-07-02 09:07:14 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2012-12-11 11:53:51 +0100 |
commit | d268038a5bdd1655f7533c8dd2edf74fbc82bbee (patch) | |
tree | b2d3d4c451582bf91829c27af319b9a352c7d350 /src/radeon_textured_videofuncs.c | |
parent | 793e1b0ea579cce7489aee57a95f20384d6ecce8 (diff) |
Remove dead code flagged by gcc -Wunused-but-set-variable.
Reviewed-by: Alex Deucher <aleander.deucher@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'src/radeon_textured_videofuncs.c')
-rw-r--r-- | src/radeon_textured_videofuncs.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/radeon_textured_videofuncs.c b/src/radeon_textured_videofuncs.c index c1bdc652..02eb0b70 100644 --- a/src/radeon_textured_videofuncs.c +++ b/src/radeon_textured_videofuncs.c @@ -3248,7 +3248,6 @@ R500PrepareTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) float uco[3], vco[3], off[3]; float bright, cont, gamma; int ref = pPriv->transform_index; - Bool needgamma = FALSE; cont = RTFContrast(pPriv->contrast); bright = RTFBrightness(pPriv->brightness); @@ -3270,17 +3269,6 @@ R500PrepareTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) //XXX gamma - if (gamma != 1.0) { - needgamma = TRUE; - /* note: gamma correction is out = in ^ gamma; - gpu can only do LG2/EX2 therefore we transform into - in ^ gamma = 2 ^ (log2(in) * gamma). - Lots of scalar ops, unfortunately (better solution?) - - without gamma that's 3 inst, with gamma it's 10... - could use different gamma factors per channel, - if that's of any use. */ - } - if (pPriv->is_planar) { BEGIN_RING(2*56); /* 2 components: 2 for tex0 */ |