aboutsummaryrefslogtreecommitdiff
path: root/shared-core/radeon_drv.h
diff options
context:
space:
mode:
authorJerome Glisse <glisse@freedesktop.org>2008-11-16 18:11:00 +0100
committerJerome Glisse <glisse@freedesktop.org>2008-11-16 18:11:00 +0100
commit7270731a8b7ebe11fe6df4f368c2ed613a530b52 (patch)
tree8fc2affe872610dfe08c77e9173e9781256d69c4 /shared-core/radeon_drv.h
parentc0ba14fd90e7495d5634c1ce0a9fb5be26230010 (diff)
radeon: protect cs ioctl atomic part with a mutex
A small subset of CS need to be atomic (relocation+IB commit to ring) right now, because of the way relocation are handled, we need to protect the whole ioctl.
Diffstat (limited to 'shared-core/radeon_drv.h')
-rw-r--r--shared-core/radeon_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared-core/radeon_drv.h b/shared-core/radeon_drv.h
index cf3084e1..fdf321d1 100644
--- a/shared-core/radeon_drv.h
+++ b/shared-core/radeon_drv.h
@@ -316,6 +316,7 @@ struct drm_radeon_cs_parser {
/* command submission struct */
struct drm_radeon_cs_priv {
+ struct mutex cs_mutex;
uint32_t id_wcnt;
uint32_t id_scnt;
uint32_t id_last_wcnt;