diff options
author | Eric Anholt <[email protected]> | 2010-07-21 13:52:37 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-07-21 20:17:24 -0700 |
commit | ff81a1dd92f1bffcbfbd2c5268ea0d821b8e9dd4 (patch) | |
tree | 5b7165b833747088b56fde29ad1f4ecac8a043b7 | |
parent | a3bfb2f755cb2255879600d12d8440fad7136a9a (diff) |
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.
-rw-r--r-- | 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 1789b21451d..c1cf4db1cae 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 */ |