freedreno/a2xx: fix depth gmem restore
authorJonathan Marek <jonathan@marek.ca>
Wed, 4 Sep 2019 19:23:27 +0000 (15:23 -0400)
committerJonathan Marek <jonathan@marek.ca>
Fri, 6 Sep 2019 02:24:29 +0000 (02:24 +0000)
commit21dfa8e4864ad00e1d0b6ff671893c4229219a3a
tree15fb55dd427f07316df85b8c8e7e46db24d489db
parent88ca73bcd04582ad5e42507e53b3cdff96a87fbd
freedreno/a2xx: fix depth gmem restore

Use fd_gmem_restore_format() to avoid trying to use unsupported Z24S8/Z16
render formats for gmem restore.

Also apply this change to gmem2mem so it doesn't depend on fd2_pipe2color
working with depth formats.

gmem2mem/mem2gmem also doesn't need to use the swap/swizzle, since dst/src
formats are the same.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Rob Clark <robdclark@chromium.org>
src/gallium/drivers/freedreno/a2xx/fd2_gmem.c