diff options
author | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-11-19 13:49:07 -0500 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-12-01 12:19:07 -0500 |
commit | e9560f7cb20722e0e7db46bbb6f43c2194a238d5 (patch) | |
tree | 876a1e87246fd7a966cfc9a059efcd572e9b7359 | |
parent | 7bd4d7be5c8c35a401b1589201e5d43a64d3f05b (diff) |
drm/i915: add GETPARAM request for page flipping
Add a GETPARAM request for checking if page flipping is supported.
Useful for the 2D driver to enable the flipping path.
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r-- | drivers/gpu/drm/i915/i915_dma.c | 3 | ||||
-rw-r--r-- | include/drm/i915_drm.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c index a8efe78e5c57..fe89d0c723e6 100644 --- a/drivers/gpu/drm/i915/i915_dma.c +++ b/drivers/gpu/drm/i915/i915_dma.c | |||
@@ -810,6 +810,9 @@ static int i915_getparam(struct drm_device *dev, void *data, | |||
810 | case I915_PARAM_HAS_OVERLAY: | 810 | case I915_PARAM_HAS_OVERLAY: |
811 | value = dev_priv->overlay ? 1 : 0; | 811 | value = dev_priv->overlay ? 1 : 0; |
812 | break; | 812 | break; |
813 | case I915_PARAM_HAS_PAGEFLIPPING: | ||
814 | value = 1; | ||
815 | break; | ||
813 | default: | 816 | default: |
814 | DRM_DEBUG_DRIVER("Unknown parameter %d\n", | 817 | DRM_DEBUG_DRIVER("Unknown parameter %d\n", |
815 | param->param); | 818 | param->param); |
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h index c900499f2f63..1b4f3a565d78 100644 --- a/include/drm/i915_drm.h +++ b/include/drm/i915_drm.h | |||
@@ -271,6 +271,7 @@ typedef struct drm_i915_irq_wait { | |||
271 | #define I915_PARAM_HAS_GEM 5 | 271 | #define I915_PARAM_HAS_GEM 5 |
272 | #define I915_PARAM_NUM_FENCES_AVAIL 6 | 272 | #define I915_PARAM_NUM_FENCES_AVAIL 6 |
273 | #define I915_PARAM_HAS_OVERLAY 7 | 273 | #define I915_PARAM_HAS_OVERLAY 7 |
274 | #define I915_PARAM_HAS_PAGEFLIPPING 8 | ||
274 | 275 | ||
275 | typedef struct drm_i915_getparam { | 276 | typedef struct drm_i915_getparam { |
276 | int param; | 277 | int param; |