diff options
author | Thomas Hellström <[email protected]> | 2004-12-15 21:59:25 +0000 |
---|---|---|
committer | Thomas Hellström <[email protected]> | 2004-12-15 21:59:25 +0000 |
commit | 20456d6a3d18970988eedc1ab84ccde13d1ce900 (patch) | |
tree | ac22a574bd4360928adc351f193c51440271d339 /src/mesa/drivers/dri/unichrome/xf86drmVIA.c | |
parent | b4f58e99ebfa7d746781b992aca8189821fb26b0 (diff) |
Unichrome DRI:
Updated the driver to the new VIA security mechanisms in DRM. All command
submissions now passes through DRM ioctls. If the DRM AGP ring-buffer is
not enabled, it will use a DRM mechanism for submitting commands to the
hardware via a PCI bus mechanism.
Removed all direct write accesses to the hardware. Among other things the
VQ was previously turned off for the PCI path, apparently for Tuxracer.
That seemed unneeded and was removed. No visible impact on Tuxracer.
Abstracted all buffer blit operations in via_ioctl.c. The blitter context
is now reprogrammed before each blitting operation.
Updated driver date and drm version requirement.
(Bugzilla Bug #1950, Thomas Hellstr�m)
Diffstat (limited to 'src/mesa/drivers/dri/unichrome/xf86drmVIA.c')
-rw-r--r-- | src/mesa/drivers/dri/unichrome/xf86drmVIA.c | 10 |
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 50fc6b9cbe4..ebe368b2b7e 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; +} + |