summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/drm.h14
-rw-r--r--shared-core/i915_drm.h8
2 files changed, 11 insertions, 11 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h
index f1430f59..7b69a634 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -961,7 +961,7 @@ struct drm_mm_info_arg {
};
-struct drm_gem_alloc {
+struct drm_gem_create {
/**
* Requested size for the object.
*
@@ -977,8 +977,8 @@ struct drm_gem_alloc {
uint32_t pad;
};
-struct drm_gem_unreference {
- /** Handle of the object to be unreferenced. */
+struct drm_gem_close {
+ /** Handle of the object to be closed. */
uint32_t handle;
uint32_t pad;
};
@@ -1023,7 +1023,7 @@ struct drm_gem_mmap {
uint64_t addr_ptr; /* void *, but pointers are not 32/64 compatible */
};
-struct drm_gem_name {
+struct drm_gem_flink {
/** Handle for the object being named */
uint32_t handle;
@@ -1123,12 +1123,12 @@ struct drm_gem_set_domain {
#define DRM_IOCTL_UPDATE_DRAW DRM_IOW(0x3f, struct drm_update_draw)
-#define DRM_IOCTL_GEM_ALLOC DRM_IOWR(0x09, struct drm_gem_alloc)
-#define DRM_IOCTL_GEM_UNREFERENCE DRM_IOW (0x0a, struct drm_gem_unreference)
+#define DRM_IOCTL_GEM_CREATE DRM_IOWR(0x09, struct drm_gem_create)
+#define DRM_IOCTL_GEM_CLOSE DRM_IOW (0x0a, struct drm_gem_close)
#define DRM_IOCTL_GEM_PREAD DRM_IOW (0x0b, struct drm_gem_pread)
#define DRM_IOCTL_GEM_PWRITE DRM_IOW (0x0c, struct drm_gem_pwrite)
#define DRM_IOCTL_GEM_MMAP DRM_IOWR(0x0d, struct drm_gem_mmap)
-#define DRM_IOCTL_GEM_NAME DRM_IOWR(0x0e, struct drm_gem_name)
+#define DRM_IOCTL_GEM_FLINK DRM_IOWR(0x0e, struct drm_gem_flink)
#define DRM_IOCTL_GEM_OPEN DRM_IOWR(0x0f, struct drm_gem_open)
#define DRM_IOCTL_GEM_SET_DOMAIN DRM_IOW (0xb7, struct drm_gem_set_domain)
diff --git a/shared-core/i915_drm.h b/shared-core/i915_drm.h
index d71447e6..5f7cefeb 100644
--- a/shared-core/i915_drm.h
+++ b/shared-core/i915_drm.h
@@ -474,12 +474,12 @@ struct drm_i915_gem_relocation_entry {
#define DRM_GEM_DOMAIN_I915_INSTRUCTION 0x00000010 /* Instruction cache, used by shader programs */
#define DRM_GEM_DOMAIN_I915_VERTEX 0x00000020 /* Vertex address cache */
-struct drm_i915_gem_validate_entry {
+struct drm_i915_gem_exec_object {
/**
* User's handle for a buffer to be bound into the GTT for this
* operation.
*/
- uint32_t buffer_handle;
+ uint32_t handle;
/** List of relocations to be performed on this buffer */
uint32_t relocation_count;
@@ -489,10 +489,10 @@ struct drm_i915_gem_validate_entry {
uint64_t alignment;
/**
- * Returned value of the updated offset of the buffer, for future
+ * Returned value of the updated offset of the object, for future
* presumed_offset writes.
*/
- uint64_t buffer_offset;
+ uint64_t offset;
};
struct drm_i915_gem_execbuffer {