summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom-at-vmware-dot-com>2009-02-27 09:18:59 +0100
committerThomas Hellstrom <thellstrom-at-vmware-dot-com>2009-02-27 09:18:59 +0100
commite60a9fe8c9f870f086ff2a246cd50860037a922d (patch)
tree9c028f1edbcd223ef45b4edc55b78687d4108e48
parentb9acb270011d3d69688bbc2f15aa09c58ede67c5 (diff)
Use the correct drm command for ttm fence finish.
-rw-r--r--src/wsbm_fencemgr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wsbm_fencemgr.c b/src/wsbm_fencemgr.c
index 03b255c..0e7a302 100644
--- a/src/wsbm_fencemgr.c
+++ b/src/wsbm_fencemgr.c
@@ -392,8 +392,8 @@ tFinish(struct _WsbmFenceMgr *mgr, void *private, uint32_t fence_type,
int ret;
do {
- ret = drmCommandWrite(priv->fd, priv->devOffset + TTM_FENCE_FINISH,
- &arg, sizeof(arg));
+ ret = drmCommandWriteRead(priv->fd, priv->devOffset + TTM_FENCE_FINISH,
+ &arg, sizeof(arg));
} while (ret == -EAGAIN || ret == -ERESTART);
return ret;