r300g: Add A8_UNORM texture format.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 27 Jan 2010 04:11:39 +0000 (20:11 -0800)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 27 Jan 2010 04:11:39 +0000 (20:11 -0800)
Keeps teeworld happy.

src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/r300/r300_texture.h

index 67325c6b80a0b66c37a46c97e390f1cf46d8f10f..a4a0e5281593f27130d8b0e2c9866d75eefaf898 100644 (file)
@@ -219,6 +219,7 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
         case PIPE_FORMAT_DXT5_RGBA:
         case PIPE_FORMAT_YCBCR:
         case PIPE_FORMAT_L8_UNORM:
+        case PIPE_FORMAT_A8_UNORM:
         case PIPE_FORMAT_A8L8_UNORM:
             retval = usage & PIPE_TEXTURE_USAGE_SAMPLER;
             break;
index 1be1e6843c2502a74128d776e0116ef9a41edadc..453fb1accc26b50e74fdffe6e88fa8d66f3326d5 100644 (file)
@@ -42,6 +42,7 @@ static INLINE uint32_t r300_translate_texformat(enum pipe_format format)
 {
     switch (format) {
         /* X8 */
+        case PIPE_FORMAT_A8_UNORM:
         case PIPE_FORMAT_I8_UNORM:
             return R300_EASY_TX_FORMAT(X, X, X, X, X8);
         case PIPE_FORMAT_L8_UNORM: