From b7037a02f02069e207a633ec6f00b805ebaf17eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 18 Dec 2008 13:18:02 -0500 Subject: [PATCH] Don't pin front buffer, kernel modesetting takes care of that now. --- egl-compositor.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/egl-compositor.c b/egl-compositor.c index ef052354..16c7fb00 100644 --- a/egl-compositor.c +++ b/egl-compositor.c @@ -819,7 +819,6 @@ create_frontbuffer(int fd, int *width, int *height, int *stride) drmModeEncoder *encoder; struct drm_mode_modeinfo *mode; struct drm_i915_gem_create create; - struct drm_i915_gem_pin pin; struct drm_gem_flink flink; unsigned int fb_id; int i, ret; @@ -868,13 +867,6 @@ create_frontbuffer(int fd, int *width, int *height, int *stride) return 0; } - pin.handle = create.handle; - pin.alignment = 4096; - if (ioctl(fd, DRM_IOCTL_I915_GEM_PIN, &pin)) { - fprintf(stderr, "failed to pin buffer: %m\n"); - return 0; - } - ret = drmModeAddFB(fd, mode->hdisplay, mode->vdisplay, 32, 32, mode->hdisplay * 4, create.handle, &fb_id); if (ret) {