panfrost: Preliminary work for mipmaps
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Thu, 21 Mar 2019 02:54:38 +0000 (02:54 +0000)
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>
Wed, 27 Mar 2019 02:11:24 +0000 (02:11 +0000)
commit6170814c42369002badb9421e75344989907bd08
tree087b8fbef4188f0c85335cef9f0db9febc505fc3
parent04a72391f35d4f25175fd1028871f2666d2ebb83
panfrost: Preliminary work for mipmaps

This patch refactors a substantial amount of code in preparation for
mipmaps. In particular, we know have a correct slice abstraction based
on offsets; cpu/gpu are no longer arbitrary pointers. We additionally
shuffle around other code to accompany these changes and cleanup how
tiled textures are handled, while drawing some attention to the blit
code.

Mipmaps are still disabled at this point, as autogeneration is not yet
implemented; enabling as-is would cause regressions.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_drm.c
src/gallium/drivers/panfrost/pan_mfbd.c
src/gallium/drivers/panfrost/pan_resource.c
src/gallium/drivers/panfrost/pan_resource.h
src/gallium/drivers/panfrost/pan_sfbd.c
src/gallium/drivers/panfrost/pan_swizzle.c
src/gallium/drivers/panfrost/pan_swizzle.h