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>
pMemoryRequirements->memoryTypeBits = 1;
pMemoryRequirements->size = image->layout.size;
- pMemoryRequirements->alignment = image->alignment;
+ pMemoryRequirements->alignment = image->layout.base_align;
}
void
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;
uint32_t layer_count;
VkSampleCountFlagBits samples;
-
- uint32_t alignment;
-
struct fdl_layout layout;
unsigned queue_family_mask;