frontend/va: Fix WIN32 VA_DRIVER_INIT_FUNC declaration. Remove declspec as it uses .def file

Fixes: b557ceb7 ("frontends/va: Add windows VA frontend support via vl_winsys_win32 and libva-win32")
Closes: #7702

Signed-off-by: Sil Vilerino <sivileri@microsoft.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19754>
This commit is contained in:
Sil Vilerino 2022-11-15 12:04:19 -05:00 committed by Marge Bot
parent 59f11b7612
commit d81e40b20c
2 changed files with 8 additions and 3 deletions

View file

@ -115,7 +115,7 @@ static struct VADriverVTableVPP vtable_vpp =
&vlVaQueryVideoProcPipelineCaps
};
PUBLIC VAStatus
VA_PUBLIC_API VAStatus
VA_DRIVER_INIT_FUNC(VADriverContextP ctx)
{
vlVaDriver *drv;

View file

@ -45,6 +45,13 @@
#include "util/u_dynarray.h"
#include "util/u_thread.h"
#include "util/detect_os.h"
#if DETECT_OS_WINDOWS
#define VA_PUBLIC_API
#else
#define VA_PUBLIC_API PUBLIC
#endif
#ifndef VA_RT_FORMAT_YUV420_10
#define VA_RT_FORMAT_YUV420_10 VA_RT_FORMAT_YUV420_10BPP
@ -383,9 +390,7 @@ typedef struct {
} vlVaQualityBits;
// Public functions:
#ifndef _WIN32
VAStatus VA_DRIVER_INIT_FUNC(VADriverContextP ctx);
#endif
// vtable functions:
VAStatus vlVaTerminate(VADriverContextP ctx);