Skip to content

Commit

Permalink
fixup! drm/asahi: Add the Asahi driver UAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
asahilina committed May 10, 2024
1 parent 1c54660 commit 9fa0fc8
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions include/uapi/drm/asahi_drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
extern "C" {
#endif

#define DRM_ASAHI_UNSTABLE_UABI_VERSION 10010
#define DRM_ASAHI_UNSTABLE_UABI_VERSION 10011

#define DRM_ASAHI_GET_PARAMS 0x00
#define DRM_ASAHI_VM_CREATE 0x01
Expand Down Expand Up @@ -55,8 +55,9 @@ struct drm_asahi_params_global {
__u32 pad1;
__u64 vm_user_start;
__u64 vm_user_end;
__u64 vm_shader_start;
__u64 vm_shader_end;
__u64 vm_usc_start;
__u64 vm_usc_end;
__u64 vm_kernel_min_size;

__u32 max_syncs_per_submission;
__u32 max_commands_per_submission;
Expand Down Expand Up @@ -104,6 +105,12 @@ struct drm_asahi_vm_create {
/** @extensions: Pointer to the first extension struct, if any */
__u64 extensions;

/** @kernel_start: Start of the kernel-reserved address range */
__u64 kernel_start;

/** @kernel_end: End of the kernel-reserved address range */
__u64 kernel_end;

/** @value: Returned VM ID */
__u32 vm_id;

Expand Down Expand Up @@ -344,6 +351,8 @@ struct drm_asahi_cmd_render {
__u64 flags;

__u64 encoder_ptr;
__u64 vertex_usc_base;
__u64 fragment_usc_base;

__u64 vertex_attachments;
__u64 fragment_attachments;
Expand Down Expand Up @@ -434,7 +443,6 @@ struct drm_asahi_cmd_render {
__u32 depth_dimensions;
__u32 isp_bgobjdepth;
__u32 isp_bgobjvals;

};

#define ASAHI_RENDER_UNK_UNK1 (1UL << 0)
Expand Down Expand Up @@ -508,6 +516,7 @@ struct drm_asahi_cmd_compute {

__u64 encoder_ptr;
__u64 encoder_end;
__u64 usc_base;

__u64 attachments;
__u32 attachment_count;
Expand Down

0 comments on commit 9fa0fc8

Please sign in to comment.