• Chris Wilson's avatar
    drm/i915: Use MLC (l3$) for context objects · 4615d4c9
    Chris Wilson authored
    Enabling context support increases SwapBuffers latency by about 20%
    (measured on an i7-3720qm). We can offset that loss slightly by enabling
    faster caching for the contexts. As they are not backed by any
    particular cache (such as the sampler or render caches) our only option
    is to select the generic mid-level cache. This reduces the latency of
    the swap by about 5%.
    
    Oddly this effect can be observed running smokin-guns on IVB at
    1280x1024:
    Using BLT copies for swaps: 151.67 fps
    Using Render copies for swaps (unpatched):  141.70 fps
    With contexts disabled: 150.23 fps
    With contexts in L3$: 150.77 fps
    Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Cc: Ben Widawsky <ben@bwidawsk.net>
    Cc: Kenneth Graunke <kenneth@whitecape.org>
    Reviewed-by: default avatarKenneth Graunke <kenneth@whitecape.org>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    4615d4c9
i915_gem_context.c 15.6 KB