From f5cf54fc1d5681edac8c4c9ce4822d5a67bc70d4 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 26 May 2020 18:21:57 -0400 Subject: panfrost: Force Z/S tiling on Bifrost Like we do on SFBD since we don't know the format bits yet. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_resource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c index bee135ae04d..2e0a2953de8 100644 --- a/src/gallium/drivers/panfrost/pan_resource.c +++ b/src/gallium/drivers/panfrost/pan_resource.c @@ -413,7 +413,8 @@ panfrost_resource_create_bo(struct panfrost_device *dev, struct panfrost_resourc bool is_2d = (res->target == PIPE_TEXTURE_2D) || (res->target == PIPE_TEXTURE_RECT); bool is_sane_bpp = bpp == 8 || bpp == 16 || bpp == 24 || bpp == 32 || bpp == 64 || bpp == 128; bool should_tile = (res->usage != PIPE_USAGE_STREAM); - bool must_tile = (res->bind & PIPE_BIND_DEPTH_STENCIL) && (dev->quirks & MIDGARD_SFBD); + bool must_tile = (res->bind & PIPE_BIND_DEPTH_STENCIL) && + (dev->quirks & (MIDGARD_SFBD | IS_BIFROST)); bool can_tile = is_2d && is_sane_bpp && ((res->bind & ~valid_binding) == 0); /* FBOs we would like to checksum, if at all possible */ -- cgit v1.2.3