summaryrefslogtreecommitdiff
path: root/linux/gamma.h
diff options
context:
space:
mode:
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)