aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan/tu_private.h
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2020-03-27 12:02:59 +0100
committerMarge Bot <[email protected]>2020-03-31 08:22:58 +0000
commitd63acce5f43b6feb8ae81d62f5c2d6976384d81c (patch)
tree1e19f3f1b996d095f7e11aca633d0a053841e601 /src/freedreno/vulkan/tu_private.h
parentd84c206d85c15cb8bc7e2d3113ab40c2b65f47cc (diff)
tu: Return the correct alignment for images
The alignment field was never initialized, so we were just returning an alignment of 0. Return the alignment from fdl, and while we're here cleanup some leftovers in tu_private.h. Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4357> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4357>
Diffstat (limited to 'src/freedreno/vulkan/tu_private.h')
-rw-r--r--src/freedreno/vulkan/tu_private.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/freedreno/vulkan/tu_private.h b/src/freedreno/vulkan/tu_private.h
index 6a7dea85ab8..bc96ebb6d21 100644
--- a/src/freedreno/vulkan/tu_private.h
+++ b/src/freedreno/vulkan/tu_private.h
@@ -1339,13 +1339,6 @@ tu_2d_clear_zs(const VkClearDepthStencilValue *val, VkFormat format, uint32_t bu
enum a6xx_2d_ifmt tu6_fmt_to_ifmt(enum a6xx_format fmt);
enum a6xx_depth_format tu6_pipe2depth(VkFormat format);
-struct tu_image_level
-{
- VkDeviceSize offset;
- VkDeviceSize size;
- uint32_t pitch;
-};
-
struct tu_image
{
VkImageType type;
@@ -1362,9 +1355,6 @@ struct tu_image
uint32_t layer_count;
VkSampleCountFlagBits samples;
-
- uint32_t alignment;
-
struct fdl_layout layout;
unsigned queue_family_mask;