From: Marek Olšák Date: Tue, 5 Dec 2017 12:32:33 +0000 (+0100) Subject: winsys/amdgpu: make IBs use read-only memory X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fef51ebceabb64256f80aa046723118f57ab4594;p=mesa.git winsys/amdgpu: make IBs use read-only memory Tested-by: Dieter Nützel Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c b/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c index 089a3585912..63cd63287fd 100644 --- 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 ?