summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_buffer.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2018-06-08 22:29:55 -0400
committerMarek Olšák <[email protected]>2018-06-19 12:52:28 -0400
commitdfeb61c5cfd39d2f9cc702d9a3151ea47a7540d8 (patch)
tree84bdd095bdf859b3a87c56cd98f4929832ddea71 /src/gallium/drivers/radeonsi/si_buffer.c
parent9322974ec716b8c3b2e326559f663ff087daa38c (diff)
radeonsi: ignore PIPE_RESOURCE_FLAG_MAP_COHERENT
We treat coherent and non-coherent buffers the same. And move external_usage for better packing. Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_buffer.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_buffer.c b/src/gallium/drivers/radeonsi/si_buffer.c
index 0546fa9d336..5bd95bffc17 100644
--- a/src/gallium/drivers/radeonsi/si_buffer.c
+++ b/src/gallium/drivers/radeonsi/si_buffer.c
@@ -142,8 +142,7 @@ void si_init_resource_fields(struct si_screen *sscreen,
}
if (res->b.b.target == PIPE_BUFFER &&
- res->b.b.flags & (PIPE_RESOURCE_FLAG_MAP_PERSISTENT |
- PIPE_RESOURCE_FLAG_MAP_COHERENT)) {
+ res->b.b.flags & PIPE_RESOURCE_FLAG_MAP_PERSISTENT) {
/* Use GTT for all persistent mappings with older
* kernels, because they didn't always flush the HDP
* cache before CS execution.