[Mesa-dev] [PATCH 08/26] gallium/radeon: don't set texture metadata for buffers
Marek Olšák
maraeo at gmail.com
Wed Mar 2 16:36:17 UTC 2016
From: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/radeon/r600_texture.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index 5e77080..558dc73 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,
--
2.5.0
More information about the mesa-dev
mailing list