Mesa (pipe-video): [g3dvl] some minor cleanup

Christian König deathsimple at kemper.freedesktop.org
Sat Apr 2 18:53:19 UTC 2011


Module: Mesa
Branch: pipe-video
Commit: 4de5d81638a79fbd74eca63723f6f09727bf4b60
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4de5d81638a79fbd74eca63723f6f09727bf4b60

Author: Christian König <deathsimple at vodafone.de>
Date:   Fri Apr  1 23:47:20 2011 +0200

[g3dvl] some minor cleanup

---

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

diff --git a/src/gallium/auxiliary/vl/vl_ycbcr_buffer.c b/src/gallium/auxiliary/vl/vl_ycbcr_buffer.c
index 846e1cd..c67cec6 100644
--- a/src/gallium/auxiliary/vl/vl_ycbcr_buffer.c
+++ b/src/gallium/auxiliary/vl/vl_ycbcr_buffer.c
@@ -100,11 +100,11 @@ struct vl_ycbcr_sampler_views *vl_ycbcr_get_sampler_views(struct vl_ycbcr_buffer
    memset(&sv_templ, 0, sizeof(sv_templ));
    u_sampler_view_default_template(&sv_templ, buffer->resources.y, buffer->resources.y->format);
 
-   // Workaround
    if (util_format_get_nr_components(buffer->resources.y->format) == 1) {
       sv_templ.swizzle_r = PIPE_SWIZZLE_RED;
       sv_templ.swizzle_g = PIPE_SWIZZLE_RED;
       sv_templ.swizzle_b = PIPE_SWIZZLE_RED;
+      sv_templ.swizzle_a = PIPE_SWIZZLE_RED;
    }
 
    if (!buffer->sampler_views.y) {




More information about the mesa-commit mailing list