tu: Move UBWC layout into fdl6_layout() and use that function.
authorEric Anholt <eric@anholt.net>
Tue, 26 Nov 2019 20:29:19 +0000 (12:29 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 11 Dec 2019 04:24:18 +0000 (04:24 +0000)
commit8bf590b46be9a20aeaddaf3ad73ee33dde6865c7
tree73b473d3d6ffb2006f5e6058106450272c8f7b02
parentde619d750328b3d604d3829d6fc45da9423f78a1
tu: Move UBWC layout into fdl6_layout() and use that function.

This gets us shared non-UBWC layout code between gallium and turnip.
Until I fix up the rest of gallium to handle UBWC mipmapping, we do the
single-level UBWC setup in gallium as a fixup after layout.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
src/freedreno/fdl/fd6_layout.c
src/freedreno/fdl/freedreno_layout.h
src/freedreno/vulkan/tu_device.c
src/freedreno/vulkan/tu_image.c
src/freedreno/vulkan/tu_private.h
src/gallium/drivers/freedreno/a6xx/fd6_resource.c