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/radv_debug.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/radv_debug.c')
-rw-r--r-- | src/amd/vulkan/radv_debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c index b69c05b64f3..cdf8e7a1145 100644 --- a/src/amd/vulkan/radv_debug.c +++ b/src/amd/vulkan/radv_debug.c @@ -61,7 +61,8 @@ radv_init_trace(struct radv_device *device) device->trace_bo = ws->buffer_create(ws, TRACE_BO_SIZE, 8, RADEON_DOMAIN_VRAM, - RADEON_FLAG_CPU_ACCESS); + RADEON_FLAG_CPU_ACCESS| + RADEON_FLAG_NO_INTERPROCESS_SHARING); if (!device->trace_bo) return false; |