amd/common: Add modifier tests.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 14 Oct 2019 22:09:08 +0000 (00:09 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 13 Nov 2020 03:27:28 +0000 (03:27 +0000)
commit395dac7bf9888db1daf425778f08cbef1ba26d7b
tree7bce2a5520120e8d2b20fd14d0ba7253d821b481
parent0833dd7d124bfd94161bff15e5b4293987920fce
amd/common: Add modifier tests.

This primarily tests that:
 - multiple GPUs with the same GPU modifier parameters result
   in the same tiling layout.
 - The size & alignment calculations don't change for a given
   modifier & image parameters.

It does this primarily based on addrlib. Radeonsi has used addrlib
for the retiling of displayable DCC for a while already, so the
DCC tiling should be pretty reliable.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6176>
src/amd/common/ac_surface.c
src/amd/common/ac_surface.h
src/amd/common/ac_surface_modifier_test.c [new file with mode: 0644]
src/amd/common/meson.build