[Mesa-dev] [PATCH] anv/blorp: Turn off AUX after doing a CCS_D resolve

Pohjolainen, Topi topi.pohjolainen at gmail.com
Fri Mar 10 07:08:53 UTC 2017


On Thu, Mar 09, 2017 at 04:42:06PM -0800, Jason Ekstrand wrote:
> 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 at intel.com>

> ---
>  src/intel/vulkan/anv_blorp.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c
> index 72a5980..e15f33e 100644
> --- a/src/intel/vulkan/anv_blorp.c
> +++ b/src/intel/vulkan/anv_blorp.c
> @@ -1519,6 +1519,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
> -- 
> 2.5.0.400.gff86faf
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list