st/mesa: don't die for ETC2 formats when no driver support
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 19 Feb 2015 06:38:58 +0000 (01:38 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 19 Feb 2015 06:41:28 +0000 (01:41 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/state_tracker/st_format.c

index 9a91d715b07c7988356736c111570e1e62021bd3..7868bb501ea92ea9c7c63949196d46daa08b684c 100644 (file)
@@ -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);