mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
venus: reorder version fields in vn_instance
Signed-off-by: Chia-I Wu <olvaffe@gmail.com> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Ryan Neph <ryanneph@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12568>
This commit is contained in:
parent
076c8f041a
commit
3bba38ab71
1 changed files with 11 additions and 11 deletions
|
|
@ -39,17 +39,6 @@ struct vn_instance {
|
|||
struct vn_renderer *renderer;
|
||||
struct vn_renderer_info renderer_info;
|
||||
|
||||
/* Between the driver and the app, VN_MAX_API_VERSION is what we advertise
|
||||
* and base.base.app_info.api_version is what the app requests.
|
||||
*
|
||||
* Between the driver and the renderer, renderer_api_version is the api
|
||||
* version we request internally, which can be higher than
|
||||
* base.base.app_info.api_version. renderer_version is the instance
|
||||
* version we can use internally.
|
||||
*/
|
||||
uint32_t renderer_api_version;
|
||||
uint32_t renderer_version;
|
||||
|
||||
/* to synchronize renderer/ring */
|
||||
mtx_t roundtrip_mutex;
|
||||
uint32_t roundtrip_next;
|
||||
|
|
@ -71,6 +60,17 @@ struct vn_instance {
|
|||
void *ptr;
|
||||
} reply;
|
||||
|
||||
/* Between the driver and the app, VN_MAX_API_VERSION is what we advertise
|
||||
* and base.base.app_info.api_version is what the app requests.
|
||||
*
|
||||
* Between the driver and the renderer, renderer_api_version is the api
|
||||
* version we request internally, which can be higher than
|
||||
* base.base.app_info.api_version. renderer_version is the instance
|
||||
* version we can use internally.
|
||||
*/
|
||||
uint32_t renderer_api_version;
|
||||
uint32_t renderer_version;
|
||||
|
||||
struct {
|
||||
mtx_t mutex;
|
||||
bool initialized;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue