summaryrefslogtreecommitdiff
path: root/linux/gamma.h
diff options
context:
space:
mode:
authorDavid Dawes <dawes@xfree86.org>2003-04-24 03:01:40 +0000
committerDavid Dawes <dawes@xfree86.org>2003-04-24 03:01:40 +0000
commit00522cedd6ee3027d2858909d34e862fa21e6e28 (patch)
tree546580556e6e90a6a1844cf4b6ff94eb245726cd /linux/gamma.h
parent9d603b0abe3d1ab2a383ee9f33f27900f9eb1d5e (diff)
Single/dual rasterizer quiescence patch for the glint/gamma DRI driver
(#5685, Sven Luther).
Diffstat (limited to 'linux/gamma.h')
-rw-r--r--linux/gamma.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/linux/gamma.h b/linux/gamma.h
index bff3f909..da8f52bb 100644
--- a/linux/gamma.h
+++ b/linux/gamma.h
@@ -90,8 +90,11 @@
#define __HAVE_DMA_QUIESCENT 1
#define DRIVER_DMA_QUIESCENT() do { \
- /* FIXME ! */ \
- gamma_dma_quiescent_single(dev); \
+ drm_gamma_private_t *dev_priv = \
+ (drm_gamma_private_t *)dev->dev_private; \
+ if (dev_priv->num_rast == 2) \
+ gamma_dma_quiescent_dual(dev); \
+ else gamma_dma_quiescent_single(dev); \
return 0; \
} while (0)