[Mesa-stable] [Mesa-dev] [PATCH 4/4] i965/draw: Set NEW_AUX_STATE when draw aux changes
Pohjolainen, Topi
topi.pohjolainen at gmail.com
Wed Jan 24 13:38:15 UTC 2018
On Wed, Jan 24, 2018 at 02:03:42AM -0800, Jason Ekstrand wrote:
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104411
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104383
> Fixes: ea0d2e98ecb369ab84e78c84709c0930ea8c293a
> Cc: mesa-stable at lists.freedesktop.org
Reviewed-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
> ---
> src/mesa/drivers/dri/i965/brw_draw.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
> index 434dd75..a647215ba 100644
> --- a/src/mesa/drivers/dri/i965/brw_draw.c
> +++ b/src/mesa/drivers/dri/i965/brw_draw.c
> @@ -553,7 +553,10 @@ brw_predraw_resolve_framebuffer(struct brw_context *brw,
> intel_miptree_render_aux_usage(brw, irb->mt, isl_format,
> blend_enabled,
> draw_aux_buffer_disabled[i]);
> - brw->draw_aux_usage[i] = aux_usage;
> + if (brw->draw_aux_usage[i] != aux_usage) {
> + brw->ctx.NewDriverState |= BRW_NEW_AUX_STATE;
> + brw->draw_aux_usage[i] = aux_usage;
> + }
>
> intel_miptree_prepare_render(brw, irb->mt, irb->mt_level,
> irb->mt_layer, irb->layer_count,
> --
> 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-stable
mailing list