summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/unichrome/xf86drmVIA.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/xf86drmVIA.c')
-rw-r--r--src/mesa/drivers/dri/unichrome/xf86drmVIA.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/unichrome/xf86drmVIA.c b/src/mesa/drivers/dri/unichrome/xf86drmVIA.c
index 50fc6b9cbe..ebe368b2b7 100644
--- a/src/mesa/drivers/dri/unichrome/xf86drmVIA.c
+++ b/src/mesa/drivers/dri/unichrome/xf86drmVIA.c
@@ -131,3 +131,13 @@ int drmVIAReleaseDMA(int fd, drmVIADMABuf *buf)
return 0;
}
+
+int drmVIACmdBuffer(int fd, drmVIACommandBuffer *buf)
+{
+ if (ioctl(fd, 0x48, buf ) < 0) {
+ return -errno;
+ }
+ else
+ return 0;
+}
+