r600g: expose 32-bit integer vertex formats
authorMarek Olšák <marek.olsak@amd.com>
Thu, 12 Dec 2013 16:22:52 +0000 (17:22 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 14 Dec 2013 16:42:08 +0000 (17:42 +0100)
This advertises GL_ARB_texture_buffer_object_rgb32.

src/gallium/drivers/r600/r600_formats.h

index 453c2b12c0dde1d180831c520a75f17a7677b382..fa374d92e6fac5b7a1abb73cb4ce65fd5a361614 100644 (file)
@@ -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;