Commit 9ddfcbfb authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig Committed by Marge Bot
Browse files

panfrost: Allow 2D AFBC on Valhall



2D AFBC should be working now, flip the switch. 3D AFBC needs more research to
get right, honestly it's not clear how 3D AFBC on Bifrost is working...

Signed-off-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa@collabora.com>
Part-of: <!16800>
parent 82d3eb7f
Pipeline #601798 waiting for manual action with stages
......@@ -332,7 +332,7 @@ panfrost_should_afbc(struct panfrost_device *dev,
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)
if (dev->arch != 7)
return false;
break;
......
......@@ -856,12 +856,6 @@ panfrost_create_screen(int fd, struct renderonly *ro)
if (dev->debug & PAN_DBG_NO_AFBC)
dev->has_afbc = false;
/* It's early days for Valhall support... disable AFBC for now to keep
* hardware bring-up simple
*/
if (dev->arch >= 9)
dev->has_afbc = false;
/* Bail early on unsupported hardware */
if (dev->model == NULL) {
debug_printf("panfrost: Unsupported model %X", dev->gpu_id);
......
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