pan/blit: Generalize texture alignment

For Valhall compat.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16035>
This commit is contained in:
Alyssa Rosenzweig 2022-04-26 10:06:02 -04:00 committed by Marge Bot
parent b7e8084af5
commit dbe95af5dd

View file

@ -860,8 +860,7 @@ pan_blitter_emit_textures(struct pan_pool *pool,
size_t payload_size =
GENX(panfrost_estimate_texture_payload_size)(views[i]);
struct panfrost_ptr surfaces =
pan_pool_alloc_aligned(pool, payload_size,
pan_alignment(SURFACE_WITH_STRIDE));
pan_pool_alloc_aligned(pool, payload_size, 64);
GENX(panfrost_new_texture)(pool->dev, views[i], texture, &surfaces);
}