OSDN Git Service

intel: Use atomic refcounters
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 2 Oct 2009 03:39:22 +0000 (04:39 +0100)
committerEric Anholt <eric@anholt.net>
Fri, 2 Oct 2009 20:21:23 +0000 (13:21 -0700)
commit04495eeec2f053be17a10cc82e646a1e23ed3830
treeb4d4ff65046b0cba5712ed07f0deb0b7e6b6133e
parent0fb215ae3199b5be0c9a9474e5941f8d8998c11a
intel: Use atomic refcounters

As the target architecture for Intel GPUs is the x86, we can presume to
have reasonable compiler support for Intel atomic intrinsics, i.e. gcc,
and so use those in preference to pulling in a complicated mess of
fragile assembly.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
[anholt: hand-resolved against my previous commit.  This brings cairo-gl
firefox-talos-gfx time from 65 seconds back down to 62 seconds.]
Signed-off-by: Eric Anholt <eric@anholt.net>
configure.ac
libdrm/intel/Makefile.am
libdrm/intel/intel_atomic.h [new file with mode: 0644]
libdrm/intel/intel_bufmgr_gem.c