[Intel-gfx] [PATCH] drm/i915: IOCTL to query the cache level of a BO.
Daniel Vetter
daniel at ffwll.ch
Fri Sep 23 10:04:17 CEST 2011
On Thu, Sep 22, 2011 at 04:27:10PM -0700, Ben Widawsky 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>
Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>
--
Daniel Vetter
Mail: daniel at ffwll.ch
Mobile: +41 (0)79 365 57 48
More information about the Intel-gfx
mailing list