projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba59064
)
winsys/amdgpu: make IBs use read-only memory
author
Marek Olšák
<marek.olsak@amd.com>
Tue, 5 Dec 2017 12:32:33 +0000
(13:32 +0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Wed, 6 Dec 2017 14:19:02 +0000
(15:19 +0100)
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
patch
|
blob
|
history
diff --git
a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
index 089a3585912dacce313612bc0be97f7dbd29f2f4..63cd63287fd7737343487dbfa301ad4099377e94 100644
(file)
--- a/
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
+++ b/
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c
@@
-649,6
+649,7
@@
static bool amdgpu_ib_new_buffer(struct amdgpu_winsys *ws, struct amdgpu_ib *ib,
ws->info.gart_page_size,
RADEON_DOMAIN_GTT,
RADEON_FLAG_NO_INTERPROCESS_SHARING |
+ RADEON_FLAG_READ_ONLY |
(ring_type == RING_GFX ||
ring_type == RING_COMPUTE ||
ring_type == RING_DMA ?