diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-03-06 21:17:59 +0000 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-03-09 15:20:11 +0000 |
commit | fe60dbc536e2fb94cf7bc5262ebd7817c16eb9e7 (patch) | |
tree | e38a3c6e1a27d7027a2fddfa0fb7c1b2b5548bd8 /src | |
parent | 1ebc92b0d02afaf8be75630bb785c70d65315c1d (diff) |
st: also check for a8 texture support in bitmap code
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_cb_bitmap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_bitmap.c b/src/mesa/state_tracker/st_cb_bitmap.c index eecedc20f0..3f503f1253 100644 --- a/src/mesa/state_tracker/st_cb_bitmap.c +++ b/src/mesa/state_tracker/st_cb_bitmap.c @@ -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; |