anv: Avoid resolves incurred by fast depth clears

Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Nanley Chery
2016-12-06 09:08:09 -08:00
parent 968ffd6c86
commit b62d8ad2ae
3 changed files with 23 additions and 6 deletions

View File

@@ -2283,10 +2283,7 @@ cmd_buffer_emit_depth_stencil(struct anv_cmd_buffer *cmd_buffer)
anv_batch_emit(&cmd_buffer->batch, GENX(3DSTATE_CLEAR_PARAMS), cp) {
if (has_hiz) {
cp.DepthClearValueValid = true;
const uint32_t ds =
cmd_buffer->state.subpass->depth_stencil_attachment;
cp.DepthClearValue =
cmd_buffer->state.attachments[ds].clear_value.depthStencil.depth;
cp.DepthClearValue = ANV_HZ_FC_VAL;
}
}
}