diff options
author | Dave Airlie <[email protected]> | 2017-10-25 07:12:13 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-10-26 23:59:28 +0100 |
commit | a639d40f1330351924d736ca260de764734f9ef7 (patch) | |
tree | c956d7a20d93df16636576d873e4c85d1ed200fc /src/amd/vulkan/si_cmd_buffer.c | |
parent | 39c5c12f8fbee9eec26a627f247d1f3ef7d4bf39 (diff) |
radv: add support for local bos. (v3)
This uses the new kernel interfaces for reduced cs overhead,
We only set the local flag for memory allocations that don't have
a dedicated allocation and ones that aren't imports.
v2: add to all the internal buffer creation paths.
v3: missed some command submission paths, handle 0/empty bo lists.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/si_cmd_buffer.c')
-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 20144d39ea3..89ee399817d 100644 --- a/src/amd/vulkan/si_cmd_buffer.c +++ b/src/amd/vulkan/si_cmd_buffer.c @@ -571,7 +571,8 @@ cik_create_gfx_config(struct radv_device *device) device->gfx_init = device->ws->buffer_create(device->ws, cs->cdw * 4, 4096, RADEON_DOMAIN_GTT, - RADEON_FLAG_CPU_ACCESS); + RADEON_FLAG_CPU_ACCESS| + RADEON_FLAG_NO_INTERPROCESS_SHARING); if (!device->gfx_init) goto fail; |