freedreno: Drop the extra offset field for mipmap slices.
authorEric Anholt <eric@anholt.net>
Thu, 21 Nov 2019 22:53:58 +0000 (14:53 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 11 Dec 2019 04:24:18 +0000 (04:24 +0000)
commit97be9503bb1aba3017b1ff682e14f9a6c60d91a0
treeaa76661f95fd2e5d3beb93da3a3bec726819ae61
parent69d7782b155b72707d95a2f6b0c0776afbb888e3
freedreno: Drop the extra offset field for mipmap slices.

We can just bake the UBWC-goes-first delta into the slices at setup time.
I did have to fix up the resource shadowing swap path to swap the slice
fields, as it was missing and regressed the format reinterpets otherwise.

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