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 <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5232>
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user