Mesa (master): i965: Set the GEM domain flags for the scratch space.

Eric Anholt anholt at kemper.freedesktop.org
Thu Jul 22 03:25:58 UTC 2010


Module: Mesa
Branch: master
Commit: ff81a1dd92f1bffcbfbd2c5268ea0d821b8e9dd4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ff81a1dd92f1bffcbfbd2c5268ea0d821b8e9dd4

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Jul 21 13:52:37 2010 -0700

i965: Set the GEM domain flags for the scratch space.

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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_wm_state.c b/src/mesa/drivers/dri/i965/brw_wm_state.c
index 1789b21..c1cf4db 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_state.c
@@ -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 */




More information about the mesa-commit mailing list