i915g: Rework debug print code
[mesa.git] / src / gallium / drivers / i915 / i915_state_derived.c
index 5ebda94f6c4ed8bdde13050813e5f808237f9557..c05954035710b8ccc7ed438a061f9202c7c93e42 100644 (file)
@@ -32,6 +32,7 @@
 #include "draw/draw_vertex.h"
 #include "i915_context.h"
 #include "i915_state.h"
+#include "i915_debug.h"
 #include "i915_reg.h"
 
 
@@ -205,6 +206,9 @@ void i915_update_derived(struct i915_context *i915)
 {
    int i;
 
+   if (I915_DBG_ON(DBG_ATOMS))
+      i915_dump_dirty(i915, __FUNCTION__);
+
    for (i = 0; atoms[i]; i++)
       if (atoms[i]->dirty & i915->dirty)
          atoms[i]->update(i915);