Commit 20f7a73a authored by Boris Brezillon's avatar Boris Brezillon
Browse files

panfrost: Allow 3D AFBC on Bifrost v7



This feature doesn't seem to work properly on Midgard, and is flagged
as unsupported on Bifrost v6.

Signed-off-by: Boris Brezillon's avatarBoris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <!8125>
parent 4ffe7354
Pipeline #251005 waiting for manual action with stages
......@@ -532,12 +532,20 @@ panfrost_should_afbc(struct panfrost_device *dev, const struct panfrost_resource
if (pres->base.nr_samples > 1)
return false;
/* TODO: Is AFBC of 3D textures possible? */
switch (pres->base.target) {
case PIPE_TEXTURE_2D:
case PIPE_TEXTURE_2D_ARRAY:
case PIPE_TEXTURE_RECT:
break;
case PIPE_TEXTURE_3D:
/* 3D AFBC is only supported on Bifrost v7+. It's supposed to
* be supported on Midgard but it doesn't seem to work */
if (dev->arch < 7)
return false;
break;
default:
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment