]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
drm/i915: add GETPARAM request for page flipping
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 19 Nov 2009 18:49:07 +0000 (10:49 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 1 Dec 2009 17:19:07 +0000 (09:19 -0800)
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>
drivers/gpu/drm/i915/i915_dma.c
include/drm/i915_drm.h

index a8efe78e5c5721912cd2a03024250a57eb14da72..fe89d0c723e6ad7ec302f58a54b92ba05c3ade17 100644 (file)
@@ -810,6 +810,9 @@ static int i915_getparam(struct drm_device *dev, void *data,
        case I915_PARAM_HAS_OVERLAY:
                value = dev_priv->overlay ? 1 : 0;
                break;
+       case I915_PARAM_HAS_PAGEFLIPPING:
+               value = 1;
+               break;
        default:
                DRM_DEBUG_DRIVER("Unknown parameter %d\n",
                                        param->param);
index c900499f2f635746bcf223d31d8db279fa8ef194..1b4f3a565d78ff150beb2a08fa86b420ef15b516 100644 (file)
@@ -271,6 +271,7 @@ typedef struct drm_i915_irq_wait {
 #define I915_PARAM_HAS_GEM               5
 #define I915_PARAM_NUM_FENCES_AVAIL      6
 #define I915_PARAM_HAS_OVERLAY           7
+#define I915_PARAM_HAS_PAGEFLIPPING     8
 
 typedef struct drm_i915_getparam {
        int param;