mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 04:10:40 +01:00
st: also check for a8 texture support in bitmap code
This commit is contained in:
parent
1ebc92b0d0
commit
fe60dbc536
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue