freedreno/a6xx: Handle R8G8 sharp edges in validate_format()
authorRob Clark <robdclark@chromium.org>
Sun, 13 Jun 2021 20:27:33 +0000 (13:27 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 15 Jun 2021 19:09:24 +0000 (19:09 +0000)
commitb97e3bb2e1ffef2dbdb843411c222a7654c0c7a0
treed8fb3b9ef5744f72e47dfaaa475c23dbbd2f52fd
parent1061a6864468e0024dd7830fdc128af595cf27d1
freedreno/a6xx: Handle R8G8 sharp edges in validate_format()

Because R8G8 has a different layout from R16, we not only need to demote
to uncompressed to (for example) sample R8G8 as R16 (or visa versa) but
we also need to demote further to linear.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11371>
src/gallium/drivers/freedreno/a6xx/fd6_resource.c
src/gallium/drivers/freedreno/freedreno_resource.c
src/gallium/drivers/freedreno/freedreno_resource.h