Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7649a716 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm: Pass CRTC ID in userspace vblank events"

parents f99b0c38 bf652034
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -312,6 +312,9 @@ static int drm_getcap(struct drm_device *dev, void *data, struct drm_file *file_
	case DRM_CAP_ADDFB2_MODIFIERS:
		req->value = dev->mode_config.allow_fb_modifiers;
		break;
	case DRM_CAP_CRTC_IN_VBLANK_EVENT:
		req->value = 1;
		break;
	default:
		return -EINVAL;
	}
+2 −0
Original line number Diff line number Diff line
@@ -1098,6 +1098,7 @@ EXPORT_SYMBOL(drm_arm_vblank_event);
void drm_crtc_arm_vblank_event(struct drm_crtc *crtc,
			       struct drm_pending_vblank_event *e)
{
	e->event.crtc_id = crtc->base.id;
	drm_arm_vblank_event(crtc->dev, drm_crtc_index(crtc), e);
}
EXPORT_SYMBOL(drm_crtc_arm_vblank_event);
@@ -1144,6 +1145,7 @@ EXPORT_SYMBOL(drm_send_vblank_event);
void drm_crtc_send_vblank_event(struct drm_crtc *crtc,
				struct drm_pending_vblank_event *e)
{
	e->event.crtc_id = crtc->base.id;
	drm_send_vblank_event(crtc->dev, drm_crtc_index(crtc), e);
}
EXPORT_SYMBOL(drm_crtc_send_vblank_event);
+2 −1
Original line number Diff line number Diff line
@@ -639,6 +639,7 @@ struct drm_gem_open {
#define DRM_CAP_CURSOR_WIDTH		0x8
#define DRM_CAP_CURSOR_HEIGHT		0x9
#define DRM_CAP_ADDFB2_MODIFIERS	0x10
#define DRM_CAP_CRTC_IN_VBLANK_EVENT	0x12

/** DRM_IOCTL_GET_CAP ioctl argument type */
struct drm_get_cap {
@@ -842,7 +843,7 @@ struct drm_event_vblank {
	__u32 tv_sec;
	__u32 tv_usec;
	__u32 sequence;
	__u32 reserved;
	__u32 crtc_id; /* 0 on older kernels that do not support this */
};

/* typedef area */