panfrost: Enable AFBC of cube maps

Missed by mistake. This is not the same as 3D AFBC, it's just like a 2D
array. Noted in a supertuxkart pandecode.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19758>
This commit is contained in:
Alyssa Rosenzweig 2022-10-29 15:38:26 -04:00 committed by Marge Bot
parent cd21cf5ab6
commit 8b7038ab3e

View file

@ -316,8 +316,10 @@ panfrost_should_afbc(struct panfrost_device *dev,
switch (pres->base.target) {
case PIPE_TEXTURE_2D:
case PIPE_TEXTURE_2D_ARRAY:
case PIPE_TEXTURE_RECT:
case PIPE_TEXTURE_2D_ARRAY:
case PIPE_TEXTURE_CUBE:
case PIPE_TEXTURE_CUBE_ARRAY:
break;
case PIPE_TEXTURE_3D: