Don't pin front buffer, kernel modesetting takes care of that now.
This commit is contained in:
parent
5b7f832eab
commit
b7037a02f0
|
@ -819,7 +819,6 @@ create_frontbuffer(int fd, int *width, int *height, int *stride)
|
||||||
drmModeEncoder *encoder;
|
drmModeEncoder *encoder;
|
||||||
struct drm_mode_modeinfo *mode;
|
struct drm_mode_modeinfo *mode;
|
||||||
struct drm_i915_gem_create create;
|
struct drm_i915_gem_create create;
|
||||||
struct drm_i915_gem_pin pin;
|
|
||||||
struct drm_gem_flink flink;
|
struct drm_gem_flink flink;
|
||||||
unsigned int fb_id;
|
unsigned int fb_id;
|
||||||
int i, ret;
|
int i, ret;
|
||||||
|
@ -868,13 +867,6 @@ create_frontbuffer(int fd, int *width, int *height, int *stride)
|
||||||
return 0;
|
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,
|
ret = drmModeAddFB(fd, mode->hdisplay, mode->vdisplay,
|
||||||
32, 32, mode->hdisplay * 4, create.handle, &fb_id);
|
32, 32, mode->hdisplay * 4, create.handle, &fb_id);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
|
|
Loading…
Reference in New Issue