Mesa (master): panfrost: Linear depth/stencil should be aligned
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jun 11 15:47:11 UTC 2019
Module: Mesa
Branch: master
Commit: 15f62b8e7c7b92c8cd5ad9020b2bb81ee197f4e5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=15f62b8e7c7b92c8cd5ad9020b2bb81ee197f4e5
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date: Mon Jun 10 07:43:41 2019 -0700
panfrost: Linear depth/stencil should be aligned
We might render to it.
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
---
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 bce3426fd67..0c45e258b96 100644
--- a/src/gallium/drivers/panfrost/pan_resource.c
+++ b/src/gallium/drivers/panfrost/pan_resource.c
@@ -188,7 +188,8 @@ panfrost_setup_slices(const struct pipe_resource *tmpl, struct panfrost_bo *bo)
* necessary, but we're not *that* pressed for memory and it
* makes code a lot simpler */
- bool renderable = tmpl->bind & PIPE_BIND_RENDER_TARGET;
+ bool renderable = tmpl->bind &
+ (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DEPTH_STENCIL);
bool tiled = bo->layout == PAN_TILED;
bool should_align = renderable || tiled;
More information about the mesa-commit
mailing list