From: Daniel Vetter Date: Wed, 15 Feb 2012 22:50:23 +0000 (+0100) Subject: drm/i915: implement SNB workaround for lazy global gtt X-Git-Tag: v3.5-rc1~83^2~140^2~88 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=149c84077fe717af883bae459623ef1cebd86388;p=pandora-kernel.git drm/i915: implement SNB workaround for lazy global gtt PIPE_CONTROL on snb needs global gtt mappings in place to workaround a hw gotcha. No other commands need such a workaround. Luckily we can detect a PIPE_CONTROL commands easily because they have a write_domain = I915_GEM_DOMAIN_INSTRUCTION (and nothing else has that). v2: Binding the target of such a reloc into the global gtt actually works instead of binding the source, which is rather pointless ... v3: Kill a superflous has_global_gtt_mapping assignement noticed by Chris Wilson. Reviewed-and-tested-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed