Introduce .editorconfig
[mesa.git] / src / gallium / drivers / r600 / r600_formats.h
index 453c2b12c0dde1d180831c520a75f17a7677b382..9533aaa137853e2d1070088682f4c6d72eb1d8a6 100644 (file)
@@ -64,7 +64,7 @@
 #define     ENDIAN_8IN32                    2
 #define     ENDIAN_8IN64                    3
 
-static INLINE unsigned r600_endian_swap(unsigned size)
+static inline unsigned r600_endian_swap(unsigned size)
 {
        if (R600_BIG_ENDIAN) {
                switch (size) {
@@ -82,7 +82,7 @@ static INLINE unsigned r600_endian_swap(unsigned size)
        }
 }
 
-static INLINE bool r600_is_vertex_format_supported(enum pipe_format format)
+static inline bool r600_is_vertex_format_supported(enum pipe_format format)
 {
        const struct util_format_description *desc = util_format_description(format);
        unsigned i;
@@ -110,6 +110,7 @@ static INLINE bool r600_is_vertex_format_supported(enum pipe_format format)
 
        /* No scaled/norm formats with 32 bits per channel. */
        if (desc->channel[i].size == 32 &&
+           !desc->channel[i].pure_integer &&
            (desc->channel[i].type == UTIL_FORMAT_TYPE_SIGNED ||
             desc->channel[i].type == UTIL_FORMAT_TYPE_UNSIGNED))
                return false;