asahi: Identify suballocated size

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16512>
This commit is contained in:
Alyssa Rosenzweig
2022-04-03 11:19:01 -04:00
parent 14d966734f
commit 03a3a7843e
+13 -3
View File
@@ -220,13 +220,23 @@ struct agx_allocate_resource_resp {
/* Handle used to identify the resource in the segment list */
uint32_t handle;
/* Size of the allocated resource */
uint64_t size;
/* Size of the root resource from which we are allocated. If this is not a
* suballocation, this is equal to the size.
*/
uint64_t root_size;
/* Globally unique identifier for the resource, shown in Instruments */
uint32_t guid;
uint32_t unk11[10];
uint32_t unk11[7];
/* Maximum size of the suballocation. For a suballocation, this equals:
*
* sub_size = root_size - (sub_cpu - root_cpu)
*
* For root allocations, this equals the size.
*/
uint64_t sub_size;
} __attribute__((packed));
struct agx_notification_queue {