@@ -147,6 +147,8 @@ struct drm_asahi_gem_create {
147147
148148 /** @handle: Returned GEM handle for the BO */
149149 __u32 handle ;
150+
151+ // TODO: u32 pad missing here, fix for next rev bump
150152};
151153
152154struct drm_asahi_gem_mmap_offset {
@@ -229,6 +231,8 @@ struct drm_asahi_queue_create {
229231
230232 /** @queue_id: The returned queue ID */
231233 __u32 queue_id ;
234+
235+ // TODO: u32 pad missing here, fix for next rev bump
232236};
233237
234238struct drm_asahi_queue_destroy {
@@ -237,6 +241,8 @@ struct drm_asahi_queue_destroy {
237241
238242 /** @queue_id: The queue ID to be destroyed */
239243 __u32 queue_id ;
244+
245+ // TODO: u32 pad missing here, fix for next rev bump
240246};
241247
242248enum drm_asahi_sync_type {
@@ -261,7 +267,7 @@ struct drm_asahi_sync {
261267enum drm_asahi_subqueue {
262268 DRM_ASAHI_SUBQUEUE_RENDER = 0 , /* Also blit */
263269 DRM_ASAHI_SUBQUEUE_COMPUTE = 1 ,
264- DRM_ASAHI_SUBQUEUE_COUNT = 2 ,
270+ DRM_ASAHI_SUBQUEUE_COUNT = 2 , /* Must remain multiple of 2 for struct alignment */
265271};
266272
267273#define DRM_ASAHI_BARRIER_NONE ~(0U)
@@ -618,6 +624,9 @@ struct drm_asahi_result_render {
618624
619625 /** @num_tvb_overflows: Number of TVB overflows that occurred for this render */
620626 __u32 num_tvb_overflows ;
627+
628+ /** @pad: MBZ */
629+ __u32 pad ;
621630};
622631
623632struct drm_asahi_result_compute {
0 commit comments