i965: Set the GEM domain flags for the scratch space.
authorEric Anholt <eric@anholt.net>
Wed, 21 Jul 2010 20:52:37 +0000 (13:52 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 22 Jul 2010 03:17:24 +0000 (20:17 -0700)
They go into the render cache, so while we don't care about their
contents after execution, failing to note them could cause the writes
to be flushed over important buffer contents later.

src/mesa/drivers/dri/i965/brw_wm_state.c

index 1789b21451d3118b311b67f3eedcd4a70cfb1539..c1cf4db1caeba957d7a1f010861d60a0c727f376 100644 (file)
@@ -222,7 +222,7 @@ wm_unit_create_from_key(struct brw_context *brw, struct brw_wm_unit_key *key,
       drm_intel_bo_emit_reloc(bo, offsetof(struct brw_wm_unit_state, thread2),
                              brw->wm.scratch_bo,
                              wm.thread2.per_thread_scratch_space,
-                             0, 0);
+                             I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER);
    }
 
    /* Emit sampler state relocation */