mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-21 23:50:22 +01:00
panfrost: Linear depth/stencil should be aligned
We might render to it. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
d7ad29ce25
commit
15f62b8e7c
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue