summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-02-19 01:38:58 -0500
committerIlia Mirkin <[email protected]>2015-02-19 01:41:28 -0500
commit0cade4ea2b114238206055eb256d0eb000bdfac9 (patch)
treec142fea967a20c5f158c42edadab8c40e770fe4f /src/mesa
parent2a135c470e3db165a6417ffcccab4a9f4500f526 (diff)
st/mesa: don't die for ETC2 formats when no driver support
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/state_tracker/st_format.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index 9a91d715b07..7868bb501ea 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -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);