freedreno: Introduce a fd_resource_layer_stride() helper.
authorEric Anholt <eric@anholt.net>
Wed, 20 Nov 2019 20:55:56 +0000 (12:55 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 26 Nov 2019 18:46:07 +0000 (18:46 +0000)
commit6b09227ededd930736dfd5c4eda140afd2185c8d
tree67518cc6095de216a4e0aff7723cb9c7f98a6004
parent9e9a26c768b070d57f5f00abc982c548a5320a5e
freedreno: Introduce a fd_resource_layer_stride() helper.

This factors out a bit of duplicated code, but will also make the shared
resource layout transition process clearer.

Acked-by: Rob Clark <robdclark@chromium.org>
src/gallium/drivers/freedreno/freedreno_resource.c
src/gallium/drivers/freedreno/freedreno_resource.h