aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_private.h
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2019-05-06 15:44:04 +0200
committerBas Nieuwenhuizen <[email protected]>2019-05-06 15:36:39 +0000
commit8139efbbbd2f07cd4d88488ca5c34c2c19ef10d4 (patch)
tree987d94569c243b9e0c167ca19d4667ca7d43bc15 /src/amd/vulkan/radv_private.h
parent11602ccd5dfa6c98400a484cae8d3221f325da6d (diff)
radv: Use given stride for images imported from Android.
Handled similarly as radeonsi. I checked the offsets are actually used. Acked-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r--src/amd/vulkan/radv_private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h
index df85d0cf889..7fa0b39f2b0 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -1672,6 +1672,11 @@ radv_init_metadata(struct radv_device *device,
struct radv_image *image,
struct radeon_bo_metadata *metadata);
+void
+radv_image_override_offset_stride(struct radv_device *device,
+ struct radv_image *image,
+ uint64_t offset, uint32_t stride);
+
union radv_descriptor {
struct {
uint32_t plane0_descriptor[8];