summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2009-01-16 10:31:31 -0500
committerKristian Høgsberg <krh@redhat.com>2009-01-16 10:31:31 -0500
commit520625328aeef23487ddf7f6b7bd26912b058e0b (patch)
tree5309d6c8c2f9cbe05309eec85b49630af2bac7d0
parent08003e766562ab29fd8bbf79f856108324dde8c8 (diff)
Don't pin frontbuffer, KMS does that for us now.
-rw-r--r--test.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/test.c b/test.c
index da1c078..d4bc79a 100644
--- a/test.c
+++ b/test.c
@@ -134,7 +134,6 @@ create_frontbuffer(EGLDisplay display, 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, fd;
@@ -185,13 +184,6 @@ create_frontbuffer(EGLDisplay display, 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) {