panfrost: Disable AFBC of 3D, 2D arrays

These are broken at least on v7 and likely elsewhere. Until this can be
investigated, let's disable it so we don't break dEQP-GLES3.

Example of a failing test without this patch:

dEQP-GLES3.functional.texture.filtering.2d_array.sizes.128x32x64_nearest

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tested-by: Maciej Matuszczyk <maccraft123mc@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8427>
This commit is contained in:
Alyssa Rosenzweig 2021-01-11 16:00:41 -05:00 committed by Marge Bot
parent 0b590c2e8c
commit abca80cf30

View file

@ -534,7 +534,6 @@ panfrost_should_afbc(struct panfrost_device *dev, const struct panfrost_resource
switch (pres->base.target) {
case PIPE_TEXTURE_2D:
case PIPE_TEXTURE_2D_ARRAY:
case PIPE_TEXTURE_RECT:
break;
@ -544,7 +543,12 @@ panfrost_should_afbc(struct panfrost_device *dev, const struct panfrost_resource
if (dev->arch < 7)
return false;
break;
/* fallthrough */
case PIPE_TEXTURE_2D_ARRAY:
/* Both 3D and 2D arrays are having issues on dEQP-GLES3, hide
* support until these bugs can be sorted so we don't introduce
* flakes */
return false;
default:
return false;