summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Vesely <[email protected]>2016-02-05 12:01:13 -0500
committerMarek Olšák <[email protected]>2016-02-05 20:23:56 +0100
commit5b51b2e00013af70072106e9d34905326fc357fc (patch)
treeb13e9d9321bdbf3227b11c5c8943850b256367de /src
parentd8e4908b6386faf7b5d5af8608e9f10b59565d1c (diff)
r600g: Ignore format for PIPE_BUFFER targets
Fixes compute since 7dd31b81fee7fe40bd09cf3fbc324fcc32782479 gallium/radeon: support PIPE_CAP_SURFACE_REINTERPRET_BLOCKS Signed-off-by: Jan Vesely <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeon/r600_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index 27b385bd357..af206e43860 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -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