diff options
author | Jason Ekstrand <[email protected]> | 2018-05-30 18:55:00 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-05-31 16:51:46 -0700 |
commit | bf34ef16ac7c5b59df936dc7a5932c9f518260d9 (patch) | |
tree | e7b986d2548cd2a12cca7de51811827493b0d443 /src/intel/vulkan/anv_intel.c | |
parent | 1f2328c3b703c846749c2bef165618f068fa18ae (diff) |
anv: Use an address for each anv_image plane
This is better than having BO and offset fields.
Reviewed-by: Scott D Phillips <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_intel.c')
-rw-r--r-- | src/intel/vulkan/anv_intel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_intel.c b/src/intel/vulkan/anv_intel.c index 976c83308e3..7ddde70b9c4 100644 --- a/src/intel/vulkan/anv_intel.c +++ b/src/intel/vulkan/anv_intel.c @@ -93,8 +93,10 @@ VkResult anv_CreateDmaBufImageINTEL( if (device->instance->physicalDevice.supports_48bit_addresses) mem->bo->flags |= EXEC_OBJECT_SUPPORTS_48B_ADDRESS; - image->planes[0].bo = mem->bo; - image->planes[0].bo_offset = 0; + image->planes[0].address = (struct anv_address) { + .bo = mem->bo, + .offset = 0, + }; assert(image->extent.width > 0); assert(image->extent.height > 0); |