asahi: Add tiling routines
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Sat, 24 Apr 2021 23:15:43 +0000 (19:15 -0400)
committerAlyssa Rosenzweig <none>
Sun, 2 May 2021 21:41:21 +0000 (17:41 -0400)
commit67dd70395f053470a54e917bb770ee131dfa8cf6
treeb4eed4311ab7576f3f22c772f6619ae05cadce0f
parenta426abcb46ca360dbfc6035e7e8afc457f394bad
asahi: Add tiling routines

For the 64x64 Morton order pattern we know how to use for textures and
framebuffers. (AGX also supports a framebuffer compression scheme. This
is not that.)

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10582>
src/asahi/lib/meson.build
src/asahi/lib/tiling.c [new file with mode: 0644]
src/asahi/lib/tiling.h [new file with mode: 0644]