diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-06-10 07:43:41 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-06-11 08:46:43 -0700 |
commit | 15f62b8e7c7b92c8cd5ad9020b2bb81ee197f4e5 (patch) | |
tree | e2b41d95b6952ce2db22cb55cdfd90eb8574c812 /src/gallium/drivers | |
parent | d7ad29ce25428be563a0d6204c419cc39b112d07 (diff) |
panfrost: Linear depth/stencil should be aligned
We might render to it.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_resource.c | 3 |
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 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; |