mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
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:
parent
59f11b7612
commit
d81e40b20c
2 changed files with 8 additions and 3 deletions
|
|
@ -115,7 +115,7 @@ static struct VADriverVTableVPP vtable_vpp =
|
|||
&vlVaQueryVideoProcPipelineCaps
|
||||
};
|
||||
|
||||
PUBLIC VAStatus
|
||||
VA_PUBLIC_API VAStatus
|
||||
VA_DRIVER_INIT_FUNC(VADriverContextP ctx)
|
||||
{
|
||||
vlVaDriver *drv;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue