win32: Fixes 32 bits visual studio module definition files by add script gen_vs_module_defs.py

Getting opengl32*.def consistence with Windows SDK.
Getting osmesa.mingw.def's gl* functions consistence with Windows SDK.
stw_* functions are cdecl, not stdcall, so there is no need mangling the symbol.
Fixes egl.def for x86
d3d10sw: Move the place of d3d10_sw.def to d3d10_sw.def.in
Fixes vulkan_lvp.def for x86
Fixes #5552
Remove stdcall-fixup

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14041>
This commit is contained in:
Yonggang Luo
2021-12-03 20:51:58 +08:00
committed by Marge Bot
parent 550975f229
commit 4ead2f6579
33 changed files with 1590 additions and 1670 deletions

View File

@@ -1,47 +0,0 @@
EXPORTS
eglBindAPI
eglBindTexImage
eglChooseConfig
eglClientWaitSync
eglCopyBuffers
eglCreateContext
eglCreateImage
eglCreatePbufferFromClientBuffer
eglCreatePbufferSurface
eglCreatePixmapSurface
eglCreatePlatformPixmapSurface
eglCreatePlatformWindowSurface
eglCreateSync
eglCreateWindowSurface
eglDestroyContext
eglDestroyImage
eglDestroySurface
eglDestroySync
eglGetConfigAttrib
eglGetConfigs
eglGetCurrentContext
eglGetCurrentDisplay
eglGetCurrentSurface
eglGetDisplay
eglGetError
eglGetPlatformDisplay
eglGetProcAddress
eglGetSyncAttrib
eglInitialize
eglMakeCurrent
eglQueryAPI
eglQueryContext
eglQueryString
eglQuerySurface
eglReleaseTexImage
eglReleaseThread
eglSurfaceAttrib
eglSwapBuffers
eglSwapInterval
eglTerminate
eglWaitClient
eglWaitGL
eglWaitNative
eglWaitSync
MesaGLInteropEGLQueryDeviceInfo
MesaGLInteropEGLExportObject

49
src/egl/main/egl.def.in Normal file
View File

@@ -0,0 +1,49 @@
; stdcall calling convention have @number suffix on 32 bits architecture for gcc
eglBindAPI@4
eglBindTexImage@12
eglChooseConfig@20
eglClientWaitSync@20
eglCopyBuffers@12
eglCreateContext@16
eglCreateImage@20
eglCreatePbufferFromClientBuffer@20
eglCreatePbufferSurface@12
eglCreatePixmapSurface@16
eglCreatePlatformPixmapSurface@16
eglCreatePlatformWindowSurface@16
eglCreateSync@12
eglCreateWindowSurface@16
eglDestroyContext@8
eglDestroyImage@8
eglDestroySurface@8
eglDestroySync@8
eglGetConfigAttrib@16
eglGetConfigs@16
eglGetCurrentContext@0
eglGetCurrentDisplay@0
eglGetCurrentSurface@4
eglGetDisplay@4
eglGetError@0
eglGetPlatformDisplay@12
eglGetProcAddress@4
eglGetSyncAttrib@16
eglInitialize@12
eglMakeCurrent@16
eglQueryAPI@0
eglQueryContext@16
eglQueryString@8
eglQuerySurface@16
eglReleaseTexImage@12
eglReleaseThread@0
eglSurfaceAttrib@16
eglSwapBuffers@8
eglSwapInterval@8
eglTerminate@4
eglWaitClient@0
eglWaitGL@0
eglWaitNative@4
eglWaitSync@12
; __cdecl calling convention have no @number suffix
MesaGLInteropEGLQueryDeviceInfo
MesaGLInteropEGLExportObject