mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
Enhance va sharing unit tests
- remove globals - cleanup comments in code Change-Id: I06ab9a5d0f39e5d0e34043808d0d6842c14fb6ff Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
1e11d8939f
commit
772f0c6f09
@@ -22,27 +22,27 @@ class VASharingFunctions : public SharingFunctions {
|
||||
}
|
||||
static const uint32_t sharingId;
|
||||
|
||||
bool isValidVaDisplay() {
|
||||
MOCKABLE_VIRTUAL bool isValidVaDisplay() {
|
||||
return vaDisplayIsValidPFN(vaDisplay) == 1;
|
||||
}
|
||||
|
||||
VAStatus deriveImage(VASurfaceID vaSurface, VAImage *vaImage) {
|
||||
MOCKABLE_VIRTUAL VAStatus deriveImage(VASurfaceID vaSurface, VAImage *vaImage) {
|
||||
return vaDeriveImagePFN(vaDisplay, vaSurface, vaImage);
|
||||
}
|
||||
|
||||
VAStatus destroyImage(VAImageID vaImageId) {
|
||||
MOCKABLE_VIRTUAL VAStatus destroyImage(VAImageID vaImageId) {
|
||||
return vaDestroyImagePFN(vaDisplay, vaImageId);
|
||||
}
|
||||
|
||||
VAStatus extGetSurfaceHandle(VASurfaceID *vaSurface, unsigned int *handleId) {
|
||||
MOCKABLE_VIRTUAL VAStatus extGetSurfaceHandle(VASurfaceID *vaSurface, unsigned int *handleId) {
|
||||
return vaExtGetSurfaceHandlePFN(vaDisplay, vaSurface, handleId);
|
||||
}
|
||||
|
||||
VAStatus syncSurface(VASurfaceID vaSurface) {
|
||||
MOCKABLE_VIRTUAL VAStatus syncSurface(VASurfaceID vaSurface) {
|
||||
return vaSyncSurfacePFN(vaDisplay, vaSurface);
|
||||
}
|
||||
|
||||
void *getLibFunc(const char *func) {
|
||||
MOCKABLE_VIRTUAL void *getLibFunc(const char *func) {
|
||||
if (vaGetLibFuncPFN) {
|
||||
return vaGetLibFuncPFN(vaDisplay, func);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user