mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 12:08:06 +02:00
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:
parent
5df18fdb77
commit
d4c1b9a5e6
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue