gallium: add size attribute to winsys_handle

This is needed at least for the VA-API frontend where the exporter
needs to know the total size of the object.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16813>
(cherry picked from commit 8c07d7cbdd)
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2022-06-01 10:45:09 +02:00 committed by Dylan Baker
parent 5df18fdb77
commit d4c1b9a5e6
2 changed files with 7 additions and 1 deletions

View file

@ -625,7 +625,7 @@
"description": "gallium: add size attribute to winsys_handle",
"nominated": false,
"nomination_type": null,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -77,6 +77,12 @@ struct winsys_handle
* Output for resource_get_handle.
*/
void *com_obj;
/**
* Total size of the object.
* Output for resource_get_handle.
*/
uint64_t size;
};
#ifdef __cplusplus