From 2883aff3becbb5a71b0bd270266e58114c98ef12 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Sun, 12 Oct 2014 12:28:43 +1300 Subject: [PATCH] i965: Flag BRW_ATOMIC_COUNTER_BUFFER when a possible ABO is respecified Signed-off-by: Chris Forbes Reviewed-by: Francisco Jerez --- src/mesa/drivers/dri/i965/intel_buffer_objects.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_buffer_objects.c b/src/mesa/drivers/dri/i965/intel_buffer_objects.c index 9298e247b34..50523fee317 100644 --- a/src/mesa/drivers/dri/i965/intel_buffer_objects.c +++ b/src/mesa/drivers/dri/i965/intel_buffer_objects.c @@ -114,6 +114,8 @@ intel_bufferobj_alloc_buffer(struct brw_context *brw, brw->state.dirty.brw |= BRW_NEW_UNIFORM_BUFFER; if (intel_obj->Base.UsageHistory & USAGE_TEXTURE_BUFFER) brw->state.dirty.brw |= BRW_NEW_TEXTURE_BUFFER; + if (intel_obj->Base.UsageHistory & USAGE_ATOMIC_COUNTER_BUFFER) + brw->state.dirty.brw |= BRW_NEW_ATOMIC_BUFFER; intel_bufferobj_mark_inactive(intel_obj); } -- 2.30.2