panvk: Use the proper alignment for texture payloads
Texture is aligned on 32-byte, which matches the plane or multiplanar surface descriptor constraint, and exceeds the surface descriptor one, but let's be accurate and use the right descriptor alignment. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31382>
This commit is contained in:
committed by
Marge Bot
parent
cfc9448e82
commit
bf9d6b96e0
@@ -149,7 +149,13 @@ panvk_per_arch(CreateImageView)(VkDevice _device,
|
||||
}
|
||||
|
||||
struct panvk_pool_alloc_info alloc_info = {
|
||||
.alignment = pan_alignment(TEXTURE),
|
||||
#if PAN_ARCH == 6
|
||||
.alignment = pan_alignment(SURFACE_WITH_STRIDE),
|
||||
#elif PAN_ARCH == 7
|
||||
.alignment = pan_alignment(MULTIPLANAR_SURFACE),
|
||||
#else
|
||||
.alignment = pan_alignment(PLANE),
|
||||
#endif
|
||||
.size = GENX(panfrost_estimate_texture_payload_size)(&pview),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user