panfrost: Calculate the row stride at resource creation time
authorBoris Brezillon <boris.brezillon@collabora.com>
Sat, 21 Nov 2020 14:58:41 +0000 (15:58 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 25 Nov 2020 16:04:20 +0000 (17:04 +0100)
commit00360cd5c85e0b5c52821f2ba6d1bd6964215efd
tree052ff3d903cf4ca433f97aa29727687cd0f82df3
parent690232c90fab42e934e297c097c6f84dd3c3d762
panfrost: Calculate the row stride at resource creation time

So we don't have to calculate it again when we create a texture or
framebuffer descriptor.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7653>
src/gallium/drivers/panfrost/pan_mfbd.c
src/gallium/drivers/panfrost/pan_resource.c
src/gallium/drivers/panfrost/pan_sfbd.c
src/panfrost/lib/pan_texture.c
src/panfrost/lib/pan_texture.h