r300g: implement TRUNC correctly
[mesa.git] / src / gallium / drivers / r600 / r600_formats.h
index b822cba9293a8d38a6a6c02345227de2853fce57..6f5722851d436f721a5c2d301190e8313ec4fead 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef R600_FORMATS_H
 #define R600_FORMATS_H
 
+#include "util/u_format.h"
 #include "r600_pipe.h"
 
 /* list of formats from R700 ISA document - apply across GPUs in different registers */
@@ -100,7 +101,8 @@ static INLINE bool r600_is_vertex_format_supported(enum pipe_format format)
        /* No fixed, no double. */
        if (desc->layout != UTIL_FORMAT_LAYOUT_PLAIN ||
            (desc->channel[i].size == 64 &&
-            desc->channel[i].type == UTIL_FORMAT_TYPE_FLOAT))
+            desc->channel[i].type == UTIL_FORMAT_TYPE_FLOAT) ||
+           desc->channel[i].type == UTIL_FORMAT_TYPE_FIXED)
                return false;
 
        /* No scaled/norm formats with 32 bits per channel. */