llvmpipe,softpipe: only support ETC1, not the upcoming ETC2
[mesa.git] / src / gallium / drivers / softpipe / sp_screen.c
index bae136768a4abd01c1276be2483755068c204021..a269328aff8704e5c21aa8276ca7131bd369ec49 100644 (file)
@@ -353,6 +353,10 @@ softpipe_is_format_supported( struct pipe_screen *screen,
       return FALSE;
    }
 
+   if (format_desc->layout == UTIL_FORMAT_LAYOUT_ETC &&
+       format != PIPE_FORMAT_ETC1_RGB8)
+      return FALSE;
+
    /*
     * All other operations (sampling, transfer, etc).
     */