anv/blorp: Turn off AUX after doing a CCS_D resolve

For render passes with multiple subpasses on gen7, we only fast-clear at
the top but an input attachment use can cause us to do a resolve in the
middle of the render pass.  Once we've done so, we are no longer have a
fast-cleared surface so we can just set aux_usage to NONE.

Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
Jason Ekstrand 2017-03-09 16:37:23 -08:00
parent 773d510c66
commit 273b720310
1 changed files with 2 additions and 0 deletions

View File

@ -1537,6 +1537,8 @@ ccs_resolve_attachment(struct anv_cmd_buffer *cmd_buffer,
/* Once we've done any sort of resolve, we're no longer fast-cleared */
att_state->fast_clear = false;
if (att_state->aux_usage == ISL_AUX_USAGE_CCS_D)
att_state->aux_usage = ISL_AUX_USAGE_NONE;
}
void