From a7fdedd247ca6ae66011c7d74894d3c2aaaac340 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 27 Apr 2022 11:40:44 -0400 Subject: [PATCH] panvk: Remove unused layout structs PanVK switched to the common Panfrost layout code, but these duplicate structs stuck around. Garbage collect them to prevent confusion. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/vulkan/panvk_private.h | 43 ----------------------------- 1 file changed, 43 deletions(-) diff --git a/src/panfrost/vulkan/panvk_private.h b/src/panfrost/vulkan/panvk_private.h index 350068542b5..105b1f5a43a 100644 --- a/src/panfrost/vulkan/panvk_private.h +++ b/src/panfrost/vulkan/panvk_private.h @@ -937,49 +937,6 @@ struct panvk_pipeline { VkRect2D scissor; }; -struct panvk_image_level { - VkDeviceSize offset; - VkDeviceSize size; - uint32_t pitch; -}; - -struct panvk_slice_layout { - unsigned width; - unsigned height; - unsigned depth; - unsigned offset; - unsigned line_stride; - unsigned size; - - /* If there is a header preceding each slice, how big is - * that header? Used for AFBC. - */ - unsigned afbc_header_size; - - /* If checksumming is enabled following the slice, what - * is its offset/stride? - */ - struct { - unsigned offset; - unsigned stride; - unsigned size; - } checksum; -}; - -#define PANVK_MAX_MIP_LEVELS 13 - -struct panvk_plane_layout { - struct panvk_slice_layout slices[PANVK_MAX_MIP_LEVELS]; - unsigned offset; - unsigned array_stride; - unsigned size; -}; - -struct panvk_plane_memory { - const struct panfrost_bo *bo; - unsigned offset; -}; - #define PANVK_MAX_PLANES 1 struct panvk_image {