st/xorg: Use A8 textures for depth 8 pixmaps
authorJakob Bornecrantz <jakob@vmware.com>
Thu, 8 Oct 2009 11:13:36 +0000 (13:13 +0200)
committerJakob Bornecrantz <jakob@vmware.com>
Thu, 8 Oct 2009 11:42:40 +0000 (13:42 +0200)
There is no hardware out there that can render to I8 textures.

src/gallium/state_trackers/xorg/xorg_exa.c

index f7949bafaaecb237dfa83d9c56e185d7aa5e0655..8920b243079775dbbafb4c1e81232b5ae2872e32 100644 (file)
@@ -76,7 +76,7 @@ exa_get_pipe_format(int depth, enum pipe_format *format, int *bbp)
        assert(*bbp == 16);
        break;
     case 8:
-       *format = PIPE_FORMAT_I8_UNORM;
+       *format = PIPE_FORMAT_A8_UNORM;
        assert(*bbp == 8);
        break;
     case 4: