[Mesa-dev] [PATCH] anv/blorp: Only set a clear color for resolves if fast-cleared

Eduardo Lima Mitev elima at igalia.com
Sun Mar 5 16:36:56 UTC 2017


Reviewed-by: Eduardo Lima Mitev <elima at igalia.com>

On 03/04/2017 01:56 AM, Jason Ekstrand wrote:
> Cc: "17.0" <mesa-stable at lists.freedesktop.org>
> ---
>  src/intel/vulkan/anv_blorp.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c
> index d79c5e0..72a5980 100644
> --- a/src/intel/vulkan/anv_blorp.c
> +++ b/src/intel/vulkan/anv_blorp.c
> @@ -1489,7 +1489,8 @@ ccs_resolve_attachment(struct anv_cmd_buffer *cmd_buffer,
>     struct blorp_surf surf;
>     get_blorp_surf_for_anv_image(image, VK_IMAGE_ASPECT_COLOR_BIT,
>                                  att_state->aux_usage, &surf);
> -   surf.clear_color = vk_to_isl_color(att_state->clear_value.color);
> +   if (att_state->fast_clear)
> +      surf.clear_color = vk_to_isl_color(att_state->clear_value.color);
>  
>     /* From the Sky Lake PRM Vol. 7, "Render Target Resolve":
>      *
> 



More information about the mesa-dev mailing list