panfrost: Linear depth/stencil should be aligned
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 10 Jun 2019 14:43:41 +0000 (07:43 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 11 Jun 2019 15:46:43 +0000 (08:46 -0700)
We might render to it.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_resource.c

index bce3426fd67fe9bc723520690fbd92f5905d7c15..0c45e258b96a1eaa4ef9905e94ddcccdec961ea2 100644 (file)
@@ -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;