[Intel-gfx] [PATCH] drm/i915: IOCTL to query the cache level of a BO.
Chris Wilson
chris at chris-wilson.co.uk
Fri Sep 23 11:00:12 CEST 2011
On Thu, 22 Sep 2011 16:27:10 -0700, Ben Widawsky <ben at bwidawsk.net> wrote:
> Querying a BO's cache level can help clients wishing to map the buffer.
> For example, an Ironlake machine could query the buffer to determine it
> should use GTT mappings, while a Sandybridge machine running the same
> code would prefer to use regular CPU mapped buffers since the cache is
> coherent.
>
> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
> Cc: Eric Anholt <eric at anholt.net>
> Cc: "Kilarski, Bernard R" <bernard.r.kilarski at intel.com>
> Signed-off-by: Ben Widawsky <ben at bwidawsk.net>
This is indeed useful.
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list