vulkan: reorder vk_cmd_queue_entry
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 30 May 2023 14:51:25 +0000 (10:51 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 31 May 2023 03:13:22 +0000 (03:13 +0000)
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23322>

src/vulkan/util/vk_cmd_queue_gen.py

index dc442b6..9e4cae4 100644 (file)
@@ -118,6 +118,9 @@ struct ${to_struct_name(c.name)} {
 struct vk_cmd_queue_entry {
    struct list_head cmd_link;
    enum vk_cmd_type type;
+   void *driver_data;
+   void (*driver_free_cb)(struct vk_cmd_queue *queue,
+                          struct vk_cmd_queue_entry *cmd);
    union {
 % for c in commands:
 % if len(c.params) <= 1:
@@ -132,9 +135,6 @@ struct vk_cmd_queue_entry {
 % endif
 % endfor
    } u;
-   void *driver_data;
-   void (*driver_free_cb)(struct vk_cmd_queue *queue,
-                          struct vk_cmd_queue_entry *cmd);
 };
 
 % for c in commands: