• D
    drm/i915: implement SNB workaround for lazy global gtt · 149c8407
    Daniel Vetter 提交于
    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: NChris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
    149c8407
i915_gem_execbuffer.c 38.3 KB