From: Samuel Pitoiset Date: Tue, 5 Dec 2017 13:20:50 +0000 (+0100) Subject: radv: make the indirect GFX config BO read-only for the GPU X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4f2ad403f39090a3897ffe4695bab315fb2bf30;p=mesa.git radv: make the indirect GFX config BO read-only for the GPU Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/si_cmd_buffer.c b/src/amd/vulkan/si_cmd_buffer.c index e16765b5aec..f5f4eefcd28 100644 --- a/src/amd/vulkan/si_cmd_buffer.c +++ b/src/amd/vulkan/si_cmd_buffer.c @@ -568,7 +568,8 @@ cik_create_gfx_config(struct radv_device *device) cs->cdw * 4, 4096, RADEON_DOMAIN_GTT, RADEON_FLAG_CPU_ACCESS| - RADEON_FLAG_NO_INTERPROCESS_SHARING); + RADEON_FLAG_NO_INTERPROCESS_SHARING | + RADEON_FLAG_READ_ONLY); if (!device->gfx_init) goto fail;