csc is not used for rgba and gives a warning. Signed-off-by: Maarten Lankhorst <m.b.lankho...@gmail.com>
--- 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 98cb616..630cf02 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); _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev