[Intel-gfx] [PATCH] drm/i915: Reject out-of-bound sprites

Daniel Vetter daniel at ffwll.ch
Tue Jan 8 17:56:43 CET 2013


On Tue, Jan 08, 2013 at 12:11:38PM +0100, Daniel Vetter wrote:
> On Tue, Dec 18, 2012 at 10:18:28PM +0000, Chris Wilson wrote:
> > We make no attempt to fixup the source as we adjust the destination
> > rectangle, expect the caller to have already fixed that up. This makes
> > no sense, asking userspace to compensate for the kernel adjusting the
> > one rectangle not the other, so simply reject any attempt to show an
> > partially visible box. Userspace should know better.
> > 
> > Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> 
> I guess this makes sense for now, given that the only user we have (ddx)
> needs to copy things around anyway ... Still, some common users and
> testcases across drivers would be nice for this </wishful-thinking>.
> 
> Applied to fixes.

Dropped again, since Ville has a more complete solution to this in his
queue.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch



More information about the Intel-gfx mailing list