summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellström <thomas@shipmail.org>2008-10-29 10:55:17 +0000
committerThomas Hellström <thomas@shipmail.org>2008-10-29 10:55:17 +0000
commitcad1b506afa26e673c1ecc9f02cdc247d815255b (patch)
tree97372ba45098d1a467ddc8748e016f3a1694ef79
parent99340b879778db7890c1988e02e95ef2167c03e6 (diff)
Handle execbuf returns correctly.
-rw-r--r--src/ochr_ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ochr_ioctl.c b/src/ochr_ioctl.c
index dea7ca0..5649bee 100644
--- a/src/ochr_ioctl.c
+++ b/src/ochr_ioctl.c
@@ -529,14 +529,14 @@ ochr_execbuf(int fd, struct _ViaCommandBuffer *cBuf)
exec_req->cmd_buffer = (uint64_t) (unsigned long)
cBuf->buf;
exec_req->cmd_buffer_size = cBuf->pos << 2;
- exec_req->engine = VIA_ENGINE_AGP;
+ exec_req->engine = VIA_ENGINE_PCI;
exec_req->exec_flags = DRM_VIA_FENCE_NO_USER;
exec_req->cliprect_offset = 0;
exec_req->num_cliprects = 0;
do {
ret = drmCommandWriteRead(fd, DRM_VIA_TTM_EXECBUF, &arg, sizeof(arg));
- } while (ret == EAGAIN || ret == EINTR);
+ } while (ret == -EAGAIN || ret == -EINTR);
iterator = validateListIterator(valList);