[Mesa-dev] [PATCH 4/4] i965: Flag BRW_ATOMIC_COUNTER_BUFFER when a possible ABO is respecified
Chris Forbes
chrisf at ijw.co.nz
Sat Oct 11 17:20:47 PDT 2014
Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
---
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 3532de6..81cc3bb 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.1.2
More information about the mesa-dev
mailing list