DRM: make drm_map_type match upstream kernel
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 20 Nov 2008 19:00:29 +0000 (11:00 -0800)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 20 Nov 2008 19:00:29 +0000 (11:00 -0800)
Since the TTM type isn't upstream yet, we need to make sure libdrm uses
what the kernel uses, which is _DRM_GEM = 6.

shared-core/drm.h

index 472cd89..507f047 100644 (file)
@@ -236,8 +236,8 @@ enum drm_map_type {
        _DRM_AGP = 3,             /**< AGP/GART */
        _DRM_SCATTER_GATHER = 4,  /**< Scatter/gather memory for PCI DMA */
        _DRM_CONSISTENT = 5,      /**< Consistent memory for PCI DMA */
-       _DRM_TTM = 6,
-       _DRM_GEM = 7
+       _DRM_GEM = 6,
+       _DRM_TTM = 7,
 };
 
 /**