On Fri, Dec 9, 2016 at 4:32 PM, Chad Versace <[email protected]> wrote:
>
> The entire goal of intel_miptree_make_shareable() is to permanently
> disable the miptree's aux surfaces. So set
> intel_mipmap_tree:disable_aux_buffers after the function's done with
> discarding down the aux surfaces.
>
> References: https://bugs.freedesktop.org/show_bug.cgi?id=98329
> Cc: Haixia Shi <[email protected]>
> Cc: Topi Pohjolainen <[email protected]>
> Cc: Nanley Chery <[email protected]
> Cc: [email protected]
> ---
>  src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c 
> b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> index 7cda0190b4..15404dae32 100644
> --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
> @@ -2330,6 +2330,8 @@ intel_miptree_make_shareable(struct brw_context *brw,
>        free(mt->mcs_buf);
>        mt->mcs_buf = NULL;
>     }
> +
> +   mt->disable_aux_buffers = true;
>  }
>
>
> --
> 2.11.0.rc2
>
> _______________________________________________
> mesa-stable mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/mesa-stable

For both patches:
Reviewed-by: Anuj Phogat <[email protected]>
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to