Skip to content

Commit

Permalink
mesa: update
Browse files Browse the repository at this point in the history
  • Loading branch information
llandwerlin-intel committed May 11, 2019
1 parent 67f7f23 commit ed29689
Show file tree
Hide file tree
Showing 10 changed files with 861 additions and 58 deletions.
8 changes: 4 additions & 4 deletions mesa/include/drm-uapi/README
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ $ make headers_install INSTALL_HDR_PATH=/path/to/install

The last update was done at the following kernel commit :

commit 78230c46ec0a91dd4256c9e54934b3c7095a7ee3
Merge: b65bd4031156 037f03155b7d
commit a5f2fafece141ef3509e686cea576366d55cabb6
Merge: 71f4e45a4ed3 860433ed2a55
Author: Dave Airlie <airlied@redhat.com>
Date: Wed Mar 21 14:07:03 2018 +1000
Date: Wed Feb 20 12:16:30 2019 +1000

Merge tag 'omapdrm-4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux into drm-next
Merge https://gitlab.freedesktop.org/drm/msm into drm-next
53 changes: 52 additions & 1 deletion mesa/include/drm-uapi/drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ typedef unsigned int drm_handle_t;
#else
#include <sys/ioccom.h>
#endif

#include <sys/types.h>
typedef int8_t __s8;
typedef uint8_t __u8;
Expand Down Expand Up @@ -679,6 +678,22 @@ struct drm_get_cap {
*/
#define DRM_CLIENT_CAP_ATOMIC 3

/**
* DRM_CLIENT_CAP_ASPECT_RATIO
*
* If set to 1, the DRM core will provide aspect ratio information in modes.
*/
#define DRM_CLIENT_CAP_ASPECT_RATIO 4

/**
* DRM_CLIENT_CAP_WRITEBACK_CONNECTORS
*
* If set to 1, the DRM core will expose special connectors to be used for
* writing back to memory the scene setup in the commit. Depends on client
* also supporting DRM_CLIENT_CAP_ATOMIC
*/
#define DRM_CLIENT_CAP_WRITEBACK_CONNECTORS 5

/** DRM_IOCTL_SET_CLIENT_CAP ioctl argument type */
struct drm_set_client_cap {
__u64 capability;
Expand Down Expand Up @@ -718,8 +733,18 @@ struct drm_syncobj_handle {
__u32 pad;
};

struct drm_syncobj_transfer {
__u32 src_handle;
__u32 dst_handle;
__u64 src_point;
__u64 dst_point;
__u32 flags;
__u32 pad;
};

#define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_ALL (1 << 0)
#define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_FOR_SUBMIT (1 << 1)
#define DRM_SYNCOBJ_WAIT_FLAGS_WAIT_AVAILABLE (1 << 2) /* wait for time point to become available */
struct drm_syncobj_wait {
__u64 handles;
/* absolute timeout */
Expand All @@ -730,12 +755,33 @@ struct drm_syncobj_wait {
__u32 pad;
};

struct drm_syncobj_timeline_wait {
__u64 handles;
/* wait on specific timeline point for every handles*/
__u64 points;
/* absolute timeout */
__s64 timeout_nsec;
__u32 count_handles;
__u32 flags;
__u32 first_signaled; /* only valid when not waiting all */
__u32 pad;
};


struct drm_syncobj_array {
__u64 handles;
__u32 count_handles;
__u32 pad;
};

struct drm_syncobj_timeline_array {
__u64 handles;
__u64 points;
__u32 count_handles;
__u32 pad;
};


/* Query current scanout sequence number */
struct drm_crtc_get_sequence {
__u32 crtc_id; /* requested crtc_id */
Expand Down Expand Up @@ -892,6 +938,11 @@ extern "C" {
#define DRM_IOCTL_MODE_GET_LEASE DRM_IOWR(0xC8, struct drm_mode_get_lease)
#define DRM_IOCTL_MODE_REVOKE_LEASE DRM_IOWR(0xC9, struct drm_mode_revoke_lease)

#define DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT DRM_IOWR(0xCA, struct drm_syncobj_timeline_wait)
#define DRM_IOCTL_SYNCOBJ_QUERY DRM_IOWR(0xCB, struct drm_syncobj_timeline_array)
#define DRM_IOCTL_SYNCOBJ_TRANSFER DRM_IOWR(0xCC, struct drm_syncobj_transfer)
#define DRM_IOCTL_SYNCOBJ_TIMELINE_SIGNAL DRM_IOWR(0xCD, struct drm_syncobj_timeline_array)

/**
* Device specific ioctls should only be in their respective headers
* The device specific ioctl range is from 0x40 to 0x9f.
Expand Down
Loading

0 comments on commit ed29689

Please sign in to comment.