diff --git a/src/gallium/drivers/panfrost/pan_job.c b/src/gallium/drivers/panfrost/pan_job.c index db1a8675846..e152aeb1363 100644 --- a/src/gallium/drivers/panfrost/pan_job.c +++ b/src/gallium/drivers/panfrost/pan_job.c @@ -1216,10 +1216,8 @@ panfrost_batch_set_requirements(struct panfrost_batch *batch) { struct panfrost_context *ctx = batch->ctx; - if (ctx->depth_stencil && ctx->depth_stencil->base.depth_writemask) { - batch->requirements |= PAN_REQ_DEPTH_WRITE; + if (ctx->depth_stencil && ctx->depth_stencil->base.depth_writemask) batch->draws |= PIPE_CLEAR_DEPTH; - } if (ctx->depth_stencil && ctx->depth_stencil->base.stencil[0].enabled) batch->draws |= PIPE_CLEAR_STENCIL; diff --git a/src/gallium/drivers/panfrost/pan_job.h b/src/gallium/drivers/panfrost/pan_job.h index 1b292c7609e..fa7861e3c2b 100644 --- a/src/gallium/drivers/panfrost/pan_job.h +++ b/src/gallium/drivers/panfrost/pan_job.h @@ -48,8 +48,6 @@ struct panfrost_batch_fence { struct panfrost_batch *batch; }; -#define PAN_REQ_DEPTH_WRITE (1 << 0) - /* A panfrost_batch corresponds to a bound FBO we're rendering to, * collecting over multiple draws. */ @@ -81,10 +79,6 @@ struct panfrost_batch { /* Amount of shared memory needed per workgroup (for compute) */ unsigned shared_size; - /* Whether this job uses the corresponding requirement (PAN_REQ_* - * bitmask) */ - unsigned requirements; - /* The bounding box covered by this job, taking scissors into account. * Basically, the bounding box we have to run fragment shaders for */ diff --git a/src/gallium/drivers/panfrost/pan_mfbd.c b/src/gallium/drivers/panfrost/pan_mfbd.c index 57cbcf5f5df..f6ed2decac8 100644 --- a/src/gallium/drivers/panfrost/pan_mfbd.c +++ b/src/gallium/drivers/panfrost/pan_mfbd.c @@ -552,17 +552,6 @@ panfrost_mfbd_fragment(struct panfrost_batch *batch, bool has_draws) rts = fb + MALI_MULTI_TARGET_FRAMEBUFFER_LENGTH; } - /* When scanning out, the depth buffer is immediately invalidated, so - * we don't need to waste bandwidth writing it out. This can improve - * performance substantially (Z24X8_UNORM 1080p @ 60fps is 475 MB/s of - * memory bandwidth!). - * - * The exception is ReadPixels, but this is not supported on GLES so we - * can safely ignore it. */ - - if (panfrost_batch_is_scanout(batch)) - batch->requirements &= ~PAN_REQ_DEPTH_WRITE; - struct panfrost_slice *checksum_slice = NULL; if (zs_crc_ext)