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/evergreen_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/evergreen_textured_videofuncs.c')
-rw-r--r-- | src/evergreen_textured_videofuncs.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/evergreen_textured_videofuncs.c b/src/evergreen_textured_videofuncs.c index 6daf30e6..a1956e72 100644 --- a/src/evergreen_textured_videofuncs.c +++ b/src/evergreen_textured_videofuncs.c @@ -106,7 +106,6 @@ EVERGREENDisplayTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) float uco[3], vco[3], off[3]; float bright, cont, gamma; int ref = pPriv->transform_index; - Bool needgamma = FALSE; float *ps_alu_consts; const_config_t ps_const_conf; float *vs_alu_consts; @@ -133,17 +132,6 @@ EVERGREENDisplayTexturedVideo(ScrnInfoPtr pScrn, RADEONPortPrivPtr pPriv) // XXX gamma = 1.0; - 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. */ - } - CLEAR (cb_conf); CLEAR (tex_res); CLEAR (tex_samp); |