[Intel-gfx] [PATCH 13/15] drm/i915: Implement GTT variants of pread

Chris Wilson chris at chris-wilson.co.uk
Wed Mar 23 18:30:22 CET 2011


On Wed, 23 Mar 2011 10:23:46 -0700, Eric Anholt <eric at anholt.net> wrote:
> On Tue, 22 Mar 2011 13:51:58 +0000, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> 
> Again, needs more justification.  For example, I would expect us not to
> bother with the GTT on SNB pread/pwrite, and just read the backing pages
> (they're in our cache, no need to clflush or anything) like we already
> have code to do.  And one note below.

Right, so snooped pages goes through the shmem paths, nothing changes. Not
everything is as nice as SNB and keeping the pages in the GTT is a benefit
for everything else.

[snip]
> So, previously if I pread a tiled object, I got the tiled data.  Now
> you're giving me maybe the tiled data, maybe the data untiled by reading
> through a fence.

No, it clears the fence before reading to maintain the existing API that
isn't that useful in current practice.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list