From 255f7842c7c9c8fc521db2982d8869c6b5058eac Mon Sep 17 00:00:00 2001 From: Boris Brezillon Date: Fri, 6 Nov 2020 12:50:41 +0100 Subject: [PATCH] panfrost: Allow linear ZS resources on Bifrost Linear Z/S buffers should be handled correctly now. Signed-off-by: Boris Brezillon Reviewed-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index 54e8cc5e3cc..979350d92b7 100644 --- a/src/gallium/drivers/panfrost/pan_resource.c +++ b/src/gallium/drivers/panfrost/pan_resource.c @@ -427,7 +427,7 @@ panfrost_can_linear(struct panfrost_device *dev, const struct panfrost_resource { /* XXX: We should be able to do linear Z/S with the right bits.. */ return !((pres->base.bind & PIPE_BIND_DEPTH_STENCIL) && - (dev->quirks & (MIDGARD_SFBD | IS_BIFROST))); + (dev->quirks & MIDGARD_SFBD)); } static bool