--- a/open-src/lib/libdrm/atomic.patch Mon May 09 10:12:33 2011 -0700
+++ b/open-src/lib/libdrm/atomic.patch Mon May 09 14:58:28 2011 -0700
@@ -1,6 +1,6 @@
---- intel/intel_bufmgr_gem.c Tue Sep 21 11:59:31 2010
-+++ intel/intel_bufmgr_gem.c Tue Sep 21 12:03:02 2010
-@@ -112,7 +112,7 @@
+--- intel/intel_bufmgr_gem.c Wed Feb 9 09:36:09 2011
++++ intel/intel_bufmgr_gem.c Wed Feb 9 09:38:11 2011
+@@ -116,7 +116,7 @@
struct _drm_intel_bo_gem {
drm_intel_bo bo;
@@ -9,18 +9,16 @@
uint32_t gem_handle;
const char *name;
-@@ -333,8 +333,8 @@
+@@ -351,7 +351,7 @@
{
drm_intel_bo_gem *bo_gem = (drm_intel_bo_gem *) bo;
-- assert(atomic_read(&bo_gem->refcount) > 0);
- atomic_inc(&bo_gem->refcount);
-+ assert(bo_gem->refcount > 0);
-+ bo_gem->refcount++;
++ bo_gem->refcount++;
}
/**
-@@ -645,7 +645,7 @@
+@@ -693,7 +693,7 @@
}
bo_gem->name = name;
@@ -29,7 +27,7 @@
bo_gem->validate_index = -1;
bo_gem->reloc_tree_fences = 0;
bo_gem->used_as_reloc_target = 0;
-@@ -776,7 +776,7 @@
+@@ -813,7 +813,7 @@
bo_gem->bo.virtual = NULL;
bo_gem->bo.bufmgr = bufmgr;
bo_gem->name = name;
@@ -38,7 +36,7 @@
bo_gem->validate_index = -1;
bo_gem->gem_handle = open_arg.handle;
bo_gem->global_name = handle;
-@@ -906,8 +906,8 @@
+@@ -945,8 +945,8 @@
{
drm_intel_bo_gem *bo_gem = (drm_intel_bo_gem *) bo;
@@ -49,7 +47,7 @@
drm_intel_gem_bo_unreference_final(bo, time);
}
-@@ -915,8 +915,8 @@
+@@ -954,8 +954,8 @@
{
drm_intel_bo_gem *bo_gem = (drm_intel_bo_gem *) bo;