diff options
author | Jason Ekstrand <[email protected]> | 2018-01-23 23:47:26 -0800 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-01-26 19:53:01 +0000 |
commit | b62cefdef80cd258e838307e34393f7669a874a7 (patch) | |
tree | 503f0787db8e87f744e4c193224f240bbcb47140 /src/mesa/drivers/dri | |
parent | 521d5b4dcc858e4d02fedb741b00266397e2f443 (diff) |
i965/draw: Set NEW_AUX_STATE when draw aux changes
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104411
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104383
Fixes: ea0d2e98ecb369ab84e78c84709c0930ea8c293a
Cc: [email protected]
Reviewed-by: Topi Pohjolainen <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
(cherry picked from commit 20f70ae3858bc213e052a8434f0e637eb36203c4)
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 434dd75daed..a647215ba5d 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, |