diff options
author | Jason Ekstrand <[email protected]> | 2017-03-09 16:37:23 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-03-14 07:36:20 -0700 |
commit | 273b720310863c2084c55f1371b2d27c2d96dbda (patch) | |
tree | 6297bd40f4d3518b68650f70ee5690eaebb0ef45 | |
parent | 773d510c66a6e7058ffb290ff4ac5b8842e6ee56 (diff) |
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 <[email protected]>
Cc: "17.0" <[email protected]>
-rw-r--r-- | src/intel/vulkan/anv_blorp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index 8de339cf09e..2bab0d076f1 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -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 |