summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost/pan_resource.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-06-10 08:04:10 -0700
committerAlyssa Rosenzweig <[email protected]>2019-06-11 08:46:43 -0700
commit7d43999e6365520a3c5b1e45a61b1590e4cb18a3 (patch)
treee6237c2df40a58de7ec0a928f18dbba032057e8a /src/gallium/drivers/panfrost/pan_resource.c
parent15f62b8e7c7b92c8cd5ad9020b2bb81ee197f4e5 (diff)
panfrost: Enable AFBC on depth/stencil
This seems to be a performance win, but more rigorous testing is necessary to figure out the exact circumstances when this is good/bad. Incidentally, this fixes non-aligned ZS. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_resource.c')
-rw-r--r--src/gallium/drivers/panfrost/pan_resource.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c
index 0c45e258b96..bcde38ae8b4 100644
--- a/src/gallium/drivers/panfrost/pan_resource.c
+++ b/src/gallium/drivers/panfrost/pan_resource.c
@@ -251,12 +251,6 @@ panfrost_create_bo(struct panfrost_screen *screen, const struct pipe_resource *t
/* Tiling textures is almost always faster, unless we only use it once */
bool should_tile = (template->usage != PIPE_USAGE_STREAM) && (template->bind & PIPE_BIND_SAMPLER_VIEW);
- /* For unclear reasons, depth/stencil is faster linear than AFBC, so
- * make sure it's linear */
-
- if (template->bind & PIPE_BIND_DEPTH_STENCIL)
- should_tile = false;
-
/* Set the layout appropriately */
bo->layout = should_tile ? PAN_TILED : PAN_LINEAR;