mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
st/mesa: don't die for ETC2 formats when no driver support
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
2a135c470e
commit
0cade4ea2b
1 changed files with 3 additions and 0 deletions
|
|
@ -921,6 +921,9 @@ test_format_conversion(struct st_context *st)
|
|||
if (i == PIPE_FORMAT_ETC1_RGB8 && !st->has_etc1)
|
||||
continue;
|
||||
|
||||
if (_mesa_is_format_etc2(mf) && !st->has_etc2)
|
||||
continue;
|
||||
|
||||
if (mf != MESA_FORMAT_NONE) {
|
||||
enum pipe_format pf = st_mesa_format_to_pipe_format(st, mf);
|
||||
assert(pf == i);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue