Mesa (master): vl: Remove unused declaration

Christian König deathsimple at kemper.freedesktop.org
Tue Dec 20 12:14:52 UTC 2011


Module: Mesa
Branch: master
Commit: 68651c3243f5539caaa0f8b81bc2ad025610606d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=68651c3243f5539caaa0f8b81bc2ad025610606d

Author: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date:   Tue Dec 20 12:36:18 2011 +0100

vl: Remove unused declaration

csc is not used for rgba and gives a warning.

Signed-off-by: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Signed-off-by: Christian König <deathsimple at vodafone.de>

---

 src/gallium/auxiliary/vl/vl_compositor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/vl/vl_compositor.c b/src/gallium/auxiliary/vl/vl_compositor.c
index 663c180..f20941b 100644
--- a/src/gallium/auxiliary/vl/vl_compositor.c
+++ b/src/gallium/auxiliary/vl/vl_compositor.c
@@ -132,7 +132,7 @@ create_frag_shader_palette(struct vl_compositor *c, bool include_cc)
    if (!shader)
       return false;
 
-   for (i = 0; i < 3; ++i)
+   for (i = 0; include_cc && i < 3; ++i)
       csc[i] = ureg_DECL_constant(shader, i);
 
    tc = ureg_DECL_fs_input(shader, TGSI_SEMANTIC_GENERIC, 1, TGSI_INTERPOLATE_LINEAR);




More information about the mesa-commit mailing list