egl: Use only libdrm structs for kms
authorJakob Bornecrantz <jakob@vmware.com>
Wed, 11 Feb 2009 15:53:53 +0000 (16:53 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Wed, 11 Feb 2009 15:56:30 +0000 (16:56 +0100)
src/gallium/state_trackers/egl/egl_surface.c
src/gallium/state_trackers/egl/egl_tracker.c
src/gallium/state_trackers/egl/egl_tracker.h

index 091d437d81b8ecbc09d4574282d0aa81a16a6fe5..281dff9f8a7a409e4c89d794eac42acfd5fe06c9 100644 (file)
  * Util functions
  */
 
-static struct drm_mode_modeinfo *
+static drmModeModeInfoPtr
 drm_find_mode(drmModeConnectorPtr connector, _EGLMode *mode)
 {
        int i;
-       struct drm_mode_modeinfo *m = NULL;
+       drmModeModeInfoPtr m = NULL;
 
        for (i = 0; i < connector->count_modes; i++) {
                m = &connector->modes[i];
index dec82c3a002ad579d392f73973f29825e78b39b9..2813bf43609a282e1ccad7a16103f1df881e7ca1 100644 (file)
@@ -92,7 +92,7 @@ drm_update_res(struct drm_device *dev)
 static void
 drm_add_modes_from_connector(_EGLScreen *screen, drmModeConnectorPtr connector)
 {
-       struct drm_mode_modeinfo *m;
+       drmModeModeInfoPtr m = NULL;
        int i;
 
        for (i = 0; i < connector->count_modes; i++) {
index 0b4dd9797d53501afe94d3bd3aab56dafd23f904..908bab5f9bf6d5ecd2df1a6f9b6045438ce78948 100644 (file)
@@ -128,7 +128,7 @@ struct drm_screen
        /*drmModeCrtcPtr crtc;*/
        uint32_t crtcID;
 
-       struct drm_mode_modeinfo *mode;
+       drmModeModeInfoPtr mode;
 };