summaryrefslogtreecommitdiff
path: root/linux-core/drmP.h
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-30 21:30:47 +0200
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-08-30 21:30:47 +0200
commit914a77a15aae07cc305cc5da5ad6c7a639cbc121 (patch)
treeb5b8a51af361a6de5498f9ac01d34778d4321626 /linux-core/drmP.h
parent611662ab287c279a95ae33442325626e0191e2c5 (diff)
Buffer object binding.
Some code reordering.
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r--linux-core/drmP.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h
index 6cce6b8d..bbf9da0b 100644
--- a/linux-core/drmP.h
+++ b/linux-core/drmP.h
@@ -951,6 +951,12 @@ typedef struct drm_fence_object{
typedef struct drm_buffer_object{
drm_device_t *dev;
drm_user_object_t base;
+
+ /*
+ * If there is a possibility that the usage variable is zero,
+ * then dev->struct_mutext should be locked before incrementing it.
+ */
+
atomic_t usage;
drm_ttm_object_t *ttm_object;
drm_ttm_backend_list_t *ttm_region;