[Intel-gfx] [PATCH 1/3] intel: Expect caller to guarantee thread-safety of individual bo

Chris Wilson chris at chris-wilson.co.uk
Sat Dec 5 12:11:49 CET 2009


On Thu, 03 Dec 2009 13:08:55 -0800, Eric Anholt <eric at anholt.net> wrote:
> I liked this hunk, being safe as far as Mesa's concerned, and the
> highest thing in the profile for mutex locking.

Thank you Eric, I trimmed the commit just to the favourable chunk. Those
few changes (removing the extraneous refcount and more importantly taking
the mutex on this hot-path) reduce the overhead of emitting relocations by
over 10%, which is noticeable on micro-benchmarks.
-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list