summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-02-24 17:33:28 +0100
committerMarek Olšák <[email protected]>2016-03-09 15:02:26 +0100
commitbe73d358298b04624cdeca7113eedd10e3e37e6c (patch)
treea8f5c1a46e017ce2a34778aaf008eb880d3fdb43 /src
parentf914779c75b01f344ff8d63f572abc71179f44d7 (diff)
gallium/radeon: don't set texture metadata for buffers
Reviewed-by: Michel Dänzer <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeon/r600_texture.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index 5e77080eed2..558dc73d9d4 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -261,8 +261,11 @@ static boolean r600_texture_get_handle(struct pipe_screen* screen,
if (!res->is_shared) {
res->is_shared = true;
- r600_texture_init_metadata(rtex, &metadata);
- rscreen->ws->buffer_set_metadata(res->buf, &metadata);
+
+ if (resource->target != PIPE_BUFFER) {
+ r600_texture_init_metadata(rtex, &metadata);
+ rscreen->ws->buffer_set_metadata(res->buf, &metadata);
+ }
}
return rscreen->ws->buffer_get_handle(res->buf,