st: also check for a8 texture support in bitmap code
authorKeith Whitwell <keithw@vmware.com>
Fri, 6 Mar 2009 21:17:59 +0000 (21:17 +0000)
committerKeith Whitwell <keithw@vmware.com>
Mon, 9 Mar 2009 15:20:11 +0000 (15:20 +0000)
src/mesa/state_tracker/st_cb_bitmap.c

index eecedc20f0265e3251299f7a616cedaa00b2a788..3f503f1253290060f32e59d550e3ea05d722d499 100644 (file)
@@ -795,6 +795,10 @@ st_init_bitmap(struct st_context *st)
                                    PIPE_TEXTURE_USAGE_SAMPLER, 0)) {
       st->bitmap.tex_format = PIPE_FORMAT_I8_UNORM;
    }
+   else if (screen->is_format_supported(screen, PIPE_FORMAT_A8_UNORM, PIPE_TEXTURE_2D, 
+                                        PIPE_TEXTURE_USAGE_SAMPLER, 0)) {
+      st->bitmap.tex_format = PIPE_FORMAT_A8_UNORM;
+   }
    else if (screen->is_format_supported(screen, PIPE_FORMAT_L8_UNORM, PIPE_TEXTURE_2D, 
                                         PIPE_TEXTURE_USAGE_SAMPLER, 0)) {
       st->bitmap.tex_format = PIPE_FORMAT_L8_UNORM;