diff options
author | Samuel Pitoiset <[email protected]> | 2017-12-05 14:20:50 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-01-08 21:24:47 +0100 |
commit | e4f2ad403f39090a3897ffe4695bab315fb2bf30 (patch) | |
tree | a9259c3c0cbb647998997c404f168e51473e5590 /src | |
parent | 0e84fc2e2b7a50e64525042a3acd4d0bd98ffcf0 (diff) |
radv: make the indirect GFX config BO read-only for the GPU
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/vulkan/si_cmd_buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |