intel/common: Add functions to handle async vm bind
Signed-off-by: José Roberto de Souza <jose.souza@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26805>
This commit is contained in:
committed by
Marge Bot
parent
11465e4b3a
commit
e905bfe81b
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Copyright 2023 Intel Corporation
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "util/simple_mtx.h"
|
||||
|
||||
struct intel_bind_timeline {
|
||||
simple_mtx_t mutex;
|
||||
uint32_t syncobj;
|
||||
uint64_t point;
|
||||
};
|
||||
|
||||
bool intel_bind_timeline_init(struct intel_bind_timeline *intel_bind_timeline, int fd);
|
||||
void intel_bind_timeline_finish(struct intel_bind_timeline *bind_timeline, int fd);
|
||||
|
||||
uint64_t intel_bind_timeline_bind_begin(struct intel_bind_timeline *bind_timeline);
|
||||
void intel_bind_timeline_bind_end(struct intel_bind_timeline *bind_timeline);
|
||||
uint32_t intel_bind_timeline_get_syncobj(struct intel_bind_timeline *bind_timeline);
|
||||
uint64_t intel_bind_timeline_get_last_point(struct intel_bind_timeline *bind_timeline);
|
||||
Reference in New Issue
Block a user