Mesa (master): gallium/radeon: ignore PIPE_BIND_SHARED for buffers

Marek Olšák mareko at kemper.freedesktop.org
Tue Jul 4 13:41:06 UTC 2017


Module: Mesa
Branch: master
Commit: fee2883bd78106a0d8dc3c081d53c8983ab6f07f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fee2883bd78106a0d8dc3c081d53c8983ab6f07f

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Tue Jun 27 19:21:29 2017 +0200

gallium/radeon: ignore PIPE_BIND_SHARED for buffers

BO exports can't be predicted this way.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

---

 src/gallium/drivers/radeon/r600_buffer_common.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/gallium/drivers/radeon/r600_buffer_common.c b/src/gallium/drivers/radeon/r600_buffer_common.c
index 5336f55cb5..342695c138 100644
--- a/src/gallium/drivers/radeon/r600_buffer_common.c
+++ b/src/gallium/drivers/radeon/r600_buffer_common.c
@@ -610,8 +610,6 @@ struct pipe_resource *r600_buffer_create(struct pipe_screen *screen,
 
 	r600_init_resource_fields(rscreen, rbuffer, templ->width0, alignment);
 
-	if (templ->bind & PIPE_BIND_SHARED)
-		rbuffer->flags |= RADEON_FLAG_HANDLE;
 	if (templ->flags & PIPE_RESOURCE_FLAG_SPARSE)
 		rbuffer->flags |= RADEON_FLAG_SPARSE;
 




More information about the mesa-commit mailing list