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 <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16800>
This commit is contained in:
committed by
Marge Bot
parent
82d3eb7f18
commit
9ddfcbfbc6
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user