r600g: Ignore format for PIPE_BUFFER targets
authorJan Vesely <jan.vesely@rutgers.edu>
Fri, 5 Feb 2016 17:01:13 +0000 (12:01 -0500)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 5 Feb 2016 19:23:56 +0000 (20:23 +0100)
Fixes compute since 7dd31b81fee7fe40bd09cf3fbc324fcc32782479
gallium/radeon: support PIPE_CAP_SURFACE_REINTERPRET_BLOCKS

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_texture.c

index 27b385bd357ee534d0b765103ca9fa0ea9f9231d..af206e43860d5181c1881ab9ab6d139639553cdd 100644 (file)
@@ -1219,7 +1219,7 @@ static struct pipe_surface *r600_create_surface(struct pipe_context *pipe,
        unsigned width = u_minify(tex->width0, level);
        unsigned height = u_minify(tex->height0, level);
 
-       if (templ->format != tex->format) {
+       if (tex->target != PIPE_BUFFER && templ->format != tex->format) {
                const struct util_format_description *tex_desc
                        = util_format_description(tex->format);
                const struct util_format_description *templ_desc