st/xorg: Use I8 format instead of A8 for depth 8 pixmaps.
authorMichel Dänzer <daenzer@vmware.com>
Fri, 25 Sep 2009 18:38:49 +0000 (20:38 +0200)
committerMichel Dänzer <daenzer@vmware.com>
Fri, 25 Sep 2009 18:38:49 +0000 (20:38 +0200)
Seems to work better for Composite acceleration.

src/gallium/state_trackers/xorg/xorg_exa.c

index 1bb274e6bdd56f493da9f47a4253e08262614056..94f4ea2c3868a5e90f9b30076c2d05dc9b02dcd9 100644 (file)
@@ -75,7 +75,7 @@ exa_get_pipe_format(int depth, enum pipe_format *format, int *bbp)
        assert(*bbp == 16);
        break;
     case 8:
-       *format = PIPE_FORMAT_A8_UNORM;
+       *format = PIPE_FORMAT_I8_UNORM;
        assert(*bbp == 8);
        break;
     case 4: