aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-05-26 18:21:57 -0400
committerAlyssa Rosenzweig <[email protected]>2020-05-27 16:49:43 -0400
commitf5cf54fc1d5681edac8c4c9ce4822d5a67bc70d4 (patch)
tree275c315769c158426bfdb7f1d0269414bf1c5641
parentf512489b2e016837b0b31e7b11948fe503f30137 (diff)
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 <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5232>
-rw-r--r--src/gallium/drivers/panfrost/pan_resource.c3
1 files changed, 2 insertions, 1 deletions
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 */