[Intel-gfx] [PATCH] drm/i915: check execbuffer for validity earlier to save on work.

Owain Ainsworth zerooa at googlemail.com
Fri Mar 12 12:56:52 CET 2010


On Thu, Mar 11, 2010 at 10:19:56PM +0000, Owain G. Ainsworth wrote:
> Before, we were waiting until we knew the batch object's gtt offset
> before we checked for validity. However, since this is purely an
> alignment check (it is impossible for the batch object to get to
> execbuffer stage without being pinned and bound) we can check alignment
> before we do any other expensive work.
> 
> Additionally, check that batch_start_offset +  batch_len is <= the size
> of the batchbuffer object.

And i can also check for overflow (already send an update to this one)

-0-
-- 
Wasting time is an important part of living.



More information about the Intel-gfx mailing list