st: also check for a8 texture support in bitmap code
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user