projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecbd3ab
)
gallium/radeon: disallow reallocation of shared buffers
author
Marek Olšák
<marek.olsak@amd.com>
Wed, 24 Feb 2016 22:45:33 +0000
(23:45 +0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Wed, 9 Mar 2016 14:02:26 +0000
(15:02 +0100)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_buffer_common.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeon/r600_buffer_common.c
b/src/gallium/drivers/radeon/r600_buffer_common.c
index 70c8eb2695e8c854ea5aa3c463e6b8b9ebdfe6d5..33ba0fbca9b8e5df6b67ce79af569df054b76732 100644
(file)
--- a/
src/gallium/drivers/radeon/r600_buffer_common.c
+++ b/
src/gallium/drivers/radeon/r600_buffer_common.c
@@
-213,6
+213,10
@@
static bool
r600_invalidate_buffer(struct r600_common_context *rctx,
struct r600_resource *rbuffer)
{
+ /* Shared buffers can't be reallocated. */
+ if (rbuffer->is_shared)
+ return false;
+
/* In AMD_pinned_memory, the user pointer association only gets
* broken when the buffer is explicitly re-allocated.
*/