st/xvmc: the alpha component of palette entries isn't used
authorChristian König <deathsimple@vodafone.de>
Thu, 1 Sep 2011 11:41:12 +0000 (13:41 +0200)
committerChristian König <deathsimple@vodafone.de>
Thu, 1 Sep 2011 17:20:47 +0000 (19:20 +0200)
src/gallium/state_trackers/xorg/xvmc/subpicture.c

index 9e29a53..1904429 100644 (file)
@@ -270,7 +270,7 @@ Status XvMCCreateSubpicture(Display *dpy, XvMCContext *context, XvMCSubpicture *
 
    if (subpicture->num_palette_entries > 0) {
       tex_templ.target = PIPE_TEXTURE_1D;
-      tex_templ.format = PIPE_FORMAT_R8G8B8A8_UNORM;
+      tex_templ.format = PIPE_FORMAT_R8G8B8X8_UNORM;
       tex_templ.width0 = subpicture->num_palette_entries;
       tex_templ.height0 = 1;
       tex_templ.usage = PIPE_USAGE_STATIC;