From: Eric Anholt Date: Wed, 21 Jul 2010 20:52:37 +0000 (-0700) Subject: i965: Set the GEM domain flags for the scratch space. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff81a1dd92f1bffcbfbd2c5268ea0d821b8e9dd4;p=mesa.git 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. --- 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 */