diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-03-13 01:31:30 +0000 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-03-14 22:47:12 +0000 |
commit | c6a725888f82d51fc70d7e1a2508afdb1b215064 (patch) | |
tree | 8eadc5ea8ea0e120dbee53673bd7869c02901fd4 /src/gallium/drivers/panfrost/pan_context.c | |
parent | 54e45d1d736954bd9f11d6825c7b242e16f8283b (diff) |
panfrost; Disable AFBC for depth buffers
For inexplicable reasons, the depth buffer is faster if kept as linear,
whereas the colour buffers are faster if AFBC. Given both code paths are
available, we'll choose the faster one of each (which also helps with
testing coverage).
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_context.c')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index a038ea122f7..f607a9a8169 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -2058,10 +2058,7 @@ panfrost_set_framebuffer_state(struct pipe_context *pctx, panfrost_attach_vt_framebuffer(ctx); panfrost_set_scissor(ctx); - struct panfrost_resource *tex = ((struct panfrost_resource *) ctx->pipe_framebuffer.zsbuf->texture); - - if (tex->bo->layout != PAN_AFBC && !panfrost_is_scanout(ctx)) - panfrost_enable_afbc(ctx, tex, true); + /* Keep the depth FBO linear */ } } } |