From 213f51c14bdb5814dcaf5633e785bc0a84b86bbf Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Thu, 27 May 2021 18:45:18 +0200 Subject: [PATCH] Wrapped GLX_NV_vertex_array_range functions --- src/wrapped/generated/functions_list.txt | 1 + src/wrapped/generated/wrapper.c | 2 ++ src/wrapped/generated/wrapper.h | 1 + src/wrapped/wrappedlibgl_private.h | 4 ++++ 4 files changed, 8 insertions(+) diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index 11e870928f..c72e46b021 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -805,6 +805,7 @@ #() pFffff #() pFdipp #() pFdddd +#() pFlfff #() pFpiii #() pFpiip #() pFpiuu diff --git a/src/wrapped/generated/wrapper.c b/src/wrapped/generated/wrapper.c index 50b22b773d..8e048392a6 100644 --- a/src/wrapped/generated/wrapper.c +++ b/src/wrapped/generated/wrapper.c @@ -877,6 +877,7 @@ typedef void* (*pFuiii_t)(uint32_t, int32_t, int32_t, int32_t); typedef void* (*pFffff_t)(float, float, float, float); typedef void* (*pFdipp_t)(double, int32_t, void*, void*); typedef void* (*pFdddd_t)(double, double, double, double); +typedef void* (*pFlfff_t)(intptr_t, float, float, float); typedef void* (*pFpiii_t)(void*, int32_t, int32_t, int32_t); typedef void* (*pFpiip_t)(void*, int32_t, int32_t, void*); typedef void* (*pFpiuu_t)(void*, int32_t, uint32_t, uint32_t); @@ -2802,6 +2803,7 @@ void pFuiii(x86emu_t *emu, uintptr_t fcn) { pFuiii_t fn = (pFuiii_t)fcn; R_EAX=( void pFffff(x86emu_t *emu, uintptr_t fcn) { pFffff_t fn = (pFffff_t)fcn; R_EAX=(uintptr_t)fn(*(float*)(R_ESP + 4), *(float*)(R_ESP + 8), *(float*)(R_ESP + 12), *(float*)(R_ESP + 16)); } void pFdipp(x86emu_t *emu, uintptr_t fcn) { pFdipp_t fn = (pFdipp_t)fcn; R_EAX=(uintptr_t)fn(*(double*)(R_ESP + 4), *(int32_t*)(R_ESP + 12), *(void**)(R_ESP + 16), *(void**)(R_ESP + 20)); } void pFdddd(x86emu_t *emu, uintptr_t fcn) { pFdddd_t fn = (pFdddd_t)fcn; R_EAX=(uintptr_t)fn(*(double*)(R_ESP + 4), *(double*)(R_ESP + 12), *(double*)(R_ESP + 20), *(double*)(R_ESP + 28)); } +void pFlfff(x86emu_t *emu, uintptr_t fcn) { pFlfff_t fn = (pFlfff_t)fcn; R_EAX=(uintptr_t)fn(*(intptr_t*)(R_ESP + 4), *(float*)(R_ESP + 8), *(float*)(R_ESP + 12), *(float*)(R_ESP + 16)); } void pFpiii(x86emu_t *emu, uintptr_t fcn) { pFpiii_t fn = (pFpiii_t)fcn; R_EAX=(uintptr_t)fn(*(void**)(R_ESP + 4), *(int32_t*)(R_ESP + 8), *(int32_t*)(R_ESP + 12), *(int32_t*)(R_ESP + 16)); } void pFpiip(x86emu_t *emu, uintptr_t fcn) { pFpiip_t fn = (pFpiip_t)fcn; R_EAX=(uintptr_t)fn(*(void**)(R_ESP + 4), *(int32_t*)(R_ESP + 8), *(int32_t*)(R_ESP + 12), *(void**)(R_ESP + 16)); } void pFpiuu(x86emu_t *emu, uintptr_t fcn) { pFpiuu_t fn = (pFpiuu_t)fcn; R_EAX=(uintptr_t)fn(*(void**)(R_ESP + 4), *(int32_t*)(R_ESP + 8), *(uint32_t*)(R_ESP + 12), *(uint32_t*)(R_ESP + 16)); } diff --git a/src/wrapped/generated/wrapper.h b/src/wrapped/generated/wrapper.h index 5c36828ab6..4a91939cde 100644 --- a/src/wrapped/generated/wrapper.h +++ b/src/wrapped/generated/wrapper.h @@ -837,6 +837,7 @@ void pFuiii(x86emu_t *emu, uintptr_t fnc); void pFffff(x86emu_t *emu, uintptr_t fnc); void pFdipp(x86emu_t *emu, uintptr_t fnc); void pFdddd(x86emu_t *emu, uintptr_t fnc); +void pFlfff(x86emu_t *emu, uintptr_t fnc); void pFpiii(x86emu_t *emu, uintptr_t fnc); void pFpiip(x86emu_t *emu, uintptr_t fnc); void pFpiuu(x86emu_t *emu, uintptr_t fnc); diff --git a/src/wrapped/wrappedlibgl_private.h b/src/wrapped/wrappedlibgl_private.h index 50cd3dab29..6089c4f150 100755 --- a/src/wrapped/wrappedlibgl_private.h +++ b/src/wrapped/wrappedlibgl_private.h @@ -3009,3 +3009,7 @@ GO(glXGetSwapIntervalMESA, iFv) //GLX_SGI_swap_control GO(glXSwapIntervalSGI,iFi) + +//GLX_NV_vertex_array_range +GO(glXAllocateMemoryNV, pFlfff) +GO(glXFreeMemoryNV, vFp) \ No newline at end of file