diff options
author | Bas Nieuwenhuizen <[email protected]> | 2019-07-10 14:27:37 +0200 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2019-10-10 17:02:34 +0000 |
commit | a34e4dd0d2aa40dd85bf41ab1e1e65e31924df73 (patch) | |
tree | 45e031f9957210de1d149108f1156b463dff5602 /src/amd/vulkan/radv_private.h | |
parent | 9ea72b53372e28451c82f798bf557ca516ea7adb (diff) |
radv/android: Add android hardware buffer field to device memory.
You cannot go from BO to Android hardware buffer, so for export we
have to remember it.
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 2f5062d99a1..8674d1bd931 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -787,6 +787,10 @@ struct radv_device_memory { VkDeviceSize map_size; void * map; void * user_ptr; + +#if RADV_SUPPORT_ANDROID_HARDWARE_BUFFER + struct AHardwareBuffer * android_hardware_buffer; +#endif }; |