*
*/
+#include "util/u_format.h"
#include "util/u_format_s3tc.h"
#include "nouveau/nv_object.xml.h"
if (!(0x00000017 & (1 << sample_count)))
return FALSE;
- if (!util_format_s3tc_enabled) {
- switch (format) {
- case PIPE_FORMAT_DXT1_RGB:
- case PIPE_FORMAT_DXT1_RGBA:
- case PIPE_FORMAT_DXT3_RGBA:
- case PIPE_FORMAT_DXT5_RGBA:
- return FALSE;
- default:
- break;
- }
+ if (!util_format_is_supported(format, bindings)) {
+ return FALSE;
}
/* transfers & shared are always supported */