diff options
author | Dave Airlie <[email protected]> | 2017-02-26 23:52:08 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-02-27 00:22:51 +0000 |
commit | 15f47027ad624d3f2f3d5aac68ee540b912a7717 (patch) | |
tree | 9f6c63db8ce3622469957b34a2fbea107ea9ec7d /src/amd/vulkan/radv_private.h | |
parent | 35189d32797af4fd7759f4a88e7d8f1b3e6994c8 (diff) |
radv: add support for NV_dedicated_allocation
This adds initial support for NV_dedicated_allocation, then
uses it for the wsi image/memory allocation paths internally
in the driver.
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 140bf8d5ca3..37549c554d0 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -523,6 +523,9 @@ struct radv_device { struct radv_device_memory { struct radeon_winsys_bo *bo; + /* for dedicated allocations */ + struct radv_image *image; + struct radv_buffer *buffer; uint32_t type_index; VkDeviceSize map_size; void * map; @@ -814,7 +817,9 @@ void radv_fill_buffer(struct radv_cmd_buffer *cmd_buffer, struct radeon_winsys_bo *bo, uint64_t offset, uint64_t size, uint32_t value); void radv_cmd_buffer_trace_emit(struct radv_cmd_buffer *cmd_buffer); - +bool radv_get_memory_fd(struct radv_device *device, + struct radv_device_memory *memory, + int *pFD); /* * Takes x,y,z as exact numbers of invocations, instead of blocks. * |