Skip to content

Commit

Permalink
Added some more wrapped libGL functions (help apitrace)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Jun 1, 2021
1 parent 656e755 commit d719809
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/wrapped/generated/functions_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
#() vFff
#() vFfp
#() vFdd
#() vFlp
#() vFLp
#() vFpi
#() vFpI
Expand Down Expand Up @@ -527,6 +528,7 @@
#() vFiipV
#() vFiuip
#() vFiuuu
#() vFiulp
#() vFiupu
#() vFiupV
#() vFifff
Expand Down Expand Up @@ -851,6 +853,7 @@
#() vFiuiip
#() vFiuipi
#() vFiuuuu
#() vFiulpp
#() vFiffff
#() vFidddd
#() vFilill
Expand Down
6 changes: 6 additions & 0 deletions src/wrapped/generated/wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ typedef void (*vFfi_t)(float, int32_t);
typedef void (*vFff_t)(float, float);
typedef void (*vFfp_t)(float, void*);
typedef void (*vFdd_t)(double, double);
typedef void (*vFlp_t)(intptr_t, void*);
typedef void (*vFLp_t)(uintptr_t, void*);
typedef void (*vFpi_t)(void*, int32_t);
typedef void (*vFpI_t)(void*, int64_t);
Expand Down Expand Up @@ -599,6 +600,7 @@ typedef void (*vFiipp_t)(int32_t, int32_t, void*, void*);
typedef void (*vFiipV_t)(int32_t, int32_t, void*, void*);
typedef void (*vFiuip_t)(int32_t, uint32_t, int32_t, void*);
typedef void (*vFiuuu_t)(int32_t, uint32_t, uint32_t, uint32_t);
typedef void (*vFiulp_t)(int32_t, uint32_t, intptr_t, void*);
typedef void (*vFiupu_t)(int32_t, uint32_t, void*, uint32_t);
typedef void (*vFiupV_t)(int32_t, uint32_t, void*, void*);
typedef void (*vFifff_t)(int32_t, float, float, float);
Expand Down Expand Up @@ -923,6 +925,7 @@ typedef void (*vFiipii_t)(int32_t, int32_t, void*, int32_t, int32_t);
typedef void (*vFiuiip_t)(int32_t, uint32_t, int32_t, int32_t, void*);
typedef void (*vFiuipi_t)(int32_t, uint32_t, int32_t, void*, int32_t);
typedef void (*vFiuuuu_t)(int32_t, uint32_t, uint32_t, uint32_t, uint32_t);
typedef void (*vFiulpp_t)(int32_t, uint32_t, intptr_t, void*, void*);
typedef void (*vFiffff_t)(int32_t, float, float, float, float);
typedef void (*vFidddd_t)(int32_t, double, double, double, double);
typedef void (*vFilill_t)(int32_t, intptr_t, int32_t, intptr_t, intptr_t);
Expand Down Expand Up @@ -2103,6 +2106,7 @@ void vFfi(x86emu_t *emu, uintptr_t fcn) { vFfi_t fn = (vFfi_t)fcn; fn(*(float*)(
void vFff(x86emu_t *emu, uintptr_t fcn) { vFff_t fn = (vFff_t)fcn; fn(*(float*)(R_ESP + 4), *(float*)(R_ESP + 8)); }
void vFfp(x86emu_t *emu, uintptr_t fcn) { vFfp_t fn = (vFfp_t)fcn; fn(*(float*)(R_ESP + 4), *(void**)(R_ESP + 8)); }
void vFdd(x86emu_t *emu, uintptr_t fcn) { vFdd_t fn = (vFdd_t)fcn; fn(*(double*)(R_ESP + 4), *(double*)(R_ESP + 12)); }
void vFlp(x86emu_t *emu, uintptr_t fcn) { vFlp_t fn = (vFlp_t)fcn; fn(*(intptr_t*)(R_ESP + 4), *(void**)(R_ESP + 8)); }
void vFLp(x86emu_t *emu, uintptr_t fcn) { vFLp_t fn = (vFLp_t)fcn; fn(*(uintptr_t*)(R_ESP + 4), *(void**)(R_ESP + 8)); }
void vFpi(x86emu_t *emu, uintptr_t fcn) { vFpi_t fn = (vFpi_t)fcn; fn(*(void**)(R_ESP + 4), *(int32_t*)(R_ESP + 8)); }
void vFpI(x86emu_t *emu, uintptr_t fcn) { vFpI_t fn = (vFpI_t)fcn; fn(*(void**)(R_ESP + 4), *(int64_t*)(R_ESP + 8)); }
Expand Down Expand Up @@ -2525,6 +2529,7 @@ void vFiipp(x86emu_t *emu, uintptr_t fcn) { vFiipp_t fn = (vFiipp_t)fcn; fn(*(in
void vFiipV(x86emu_t *emu, uintptr_t fcn) { vFiipV_t fn = (vFiipV_t)fcn; fn(*(int32_t*)(R_ESP + 4), *(int32_t*)(R_ESP + 8), *(void**)(R_ESP + 12), (void*)(R_ESP + 16)); }
void vFiuip(x86emu_t *emu, uintptr_t fcn) { vFiuip_t fn = (vFiuip_t)fcn; fn(*(int32_t*)(R_ESP + 4), *(uint32_t*)(R_ESP + 8), *(int32_t*)(R_ESP + 12), *(void**)(R_ESP + 16)); }
void vFiuuu(x86emu_t *emu, uintptr_t fcn) { vFiuuu_t fn = (vFiuuu_t)fcn; fn(*(int32_t*)(R_ESP + 4), *(uint32_t*)(R_ESP + 8), *(uint32_t*)(R_ESP + 12), *(uint32_t*)(R_ESP + 16)); }
void vFiulp(x86emu_t *emu, uintptr_t fcn) { vFiulp_t fn = (vFiulp_t)fcn; fn(*(int32_t*)(R_ESP + 4), *(uint32_t*)(R_ESP + 8), *(intptr_t*)(R_ESP + 12), *(void**)(R_ESP + 16)); }
void vFiupu(x86emu_t *emu, uintptr_t fcn) { vFiupu_t fn = (vFiupu_t)fcn; fn(*(int32_t*)(R_ESP + 4), *(uint32_t*)(R_ESP + 8), *(void**)(R_ESP + 12), *(uint32_t*)(R_ESP + 16)); }
void vFiupV(x86emu_t *emu, uintptr_t fcn) { vFiupV_t fn = (vFiupV_t)fcn; fn(*(int32_t*)(R_ESP + 4), *(uint32_t*)(R_ESP + 8), *(void**)(R_ESP + 12), (void*)(R_ESP + 16)); }
void vFifff(x86emu_t *emu, uintptr_t fcn) { vFifff_t fn = (vFifff_t)fcn; fn(*(int32_t*)(R_ESP + 4), *(float*)(R_ESP + 8), *(float*)(R_ESP + 12), *(float*)(R_ESP + 16)); }
Expand Down Expand Up @@ -2849,6 +2854,7 @@ void vFiipii(x86emu_t *emu, uintptr_t fcn) { vFiipii_t fn = (vFiipii_t)fcn; fn(*
void vFiuiip(x86emu_t *emu, uintptr_t fcn) { vFiuiip_t fn = (vFiuiip_t)fcn; fn(*(int32_t*)(R_ESP + 4), *(uint32_t*)(R_ESP + 8), *(int32_t*)(R_ESP + 12), *(int32_t*)(R_ESP + 16), *(void**)(R_ESP + 20)); }
void vFiuipi(x86emu_t *emu, uintptr_t fcn) { vFiuipi_t fn = (vFiuipi_t)fcn; fn(*(int32_t*)(R_ESP + 4), *(uint32_t*)(R_ESP + 8), *(int32_t*)(R_ESP + 12), *(void**)(R_ESP + 16), *(int32_t*)(R_ESP + 20)); }
void vFiuuuu(x86emu_t *emu, uintptr_t fcn) { vFiuuuu_t fn = (vFiuuuu_t)fcn; fn(*(int32_t*)(R_ESP + 4), *(uint32_t*)(R_ESP + 8), *(uint32_t*)(R_ESP + 12), *(uint32_t*)(R_ESP + 16), *(uint32_t*)(R_ESP + 20)); }
void vFiulpp(x86emu_t *emu, uintptr_t fcn) { vFiulpp_t fn = (vFiulpp_t)fcn; fn(*(int32_t*)(R_ESP + 4), *(uint32_t*)(R_ESP + 8), *(intptr_t*)(R_ESP + 12), *(void**)(R_ESP + 16), *(void**)(R_ESP + 20)); }
void vFiffff(x86emu_t *emu, uintptr_t fcn) { vFiffff_t fn = (vFiffff_t)fcn; fn(*(int32_t*)(R_ESP + 4), *(float*)(R_ESP + 8), *(float*)(R_ESP + 12), *(float*)(R_ESP + 16), *(float*)(R_ESP + 20)); }
void vFidddd(x86emu_t *emu, uintptr_t fcn) { vFidddd_t fn = (vFidddd_t)fcn; fn(*(int32_t*)(R_ESP + 4), *(double*)(R_ESP + 8), *(double*)(R_ESP + 16), *(double*)(R_ESP + 24), *(double*)(R_ESP + 32)); }
void vFilill(x86emu_t *emu, uintptr_t fcn) { vFilill_t fn = (vFilill_t)fcn; fn(*(int32_t*)(R_ESP + 4), *(intptr_t*)(R_ESP + 8), *(int32_t*)(R_ESP + 12), *(intptr_t*)(R_ESP + 16), *(intptr_t*)(R_ESP + 20)); }
Expand Down
3 changes: 3 additions & 0 deletions src/wrapped/generated/wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ void vFfi(x86emu_t *emu, uintptr_t fnc);
void vFff(x86emu_t *emu, uintptr_t fnc);
void vFfp(x86emu_t *emu, uintptr_t fnc);
void vFdd(x86emu_t *emu, uintptr_t fnc);
void vFlp(x86emu_t *emu, uintptr_t fnc);
void vFLp(x86emu_t *emu, uintptr_t fnc);
void vFpi(x86emu_t *emu, uintptr_t fnc);
void vFpI(x86emu_t *emu, uintptr_t fnc);
Expand Down Expand Up @@ -559,6 +560,7 @@ void vFiipp(x86emu_t *emu, uintptr_t fnc);
void vFiipV(x86emu_t *emu, uintptr_t fnc);
void vFiuip(x86emu_t *emu, uintptr_t fnc);
void vFiuuu(x86emu_t *emu, uintptr_t fnc);
void vFiulp(x86emu_t *emu, uintptr_t fnc);
void vFiupu(x86emu_t *emu, uintptr_t fnc);
void vFiupV(x86emu_t *emu, uintptr_t fnc);
void vFifff(x86emu_t *emu, uintptr_t fnc);
Expand Down Expand Up @@ -883,6 +885,7 @@ void vFiipii(x86emu_t *emu, uintptr_t fnc);
void vFiuiip(x86emu_t *emu, uintptr_t fnc);
void vFiuipi(x86emu_t *emu, uintptr_t fnc);
void vFiuuuu(x86emu_t *emu, uintptr_t fnc);
void vFiulpp(x86emu_t *emu, uintptr_t fnc);
void vFiffff(x86emu_t *emu, uintptr_t fnc);
void vFidddd(x86emu_t *emu, uintptr_t fnc);
void vFilill(x86emu_t *emu, uintptr_t fnc);
Expand Down
17 changes: 16 additions & 1 deletion src/wrapped/wrappedlibgl_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -3012,4 +3012,19 @@ GO(glXSwapIntervalSGI,iFi)

//GLX_NV_vertex_array_range
GO(glXAllocateMemoryNV, pFlfff)
GO(glXFreeMemoryNV, vFp)
GO(glXFreeMemoryNV, vFp)

//GLX_ARB_????
GO(glSpecializeShaderARB, vFippp)

//GL_EXT_debug_label
GO(glGetObjectLabelEXT, vFiulpp)
GO(glLabelObjectEXT, vFiulp)
GO(glPushGroupMarkerEXT, vFlp)
GO(glPopGroupMarkerEXT, vFv)

//GL_KHR_blend_equation_advanced
GO(glBlendBarrierKHR, vFv)

//Some Apple extension
GO(glResolveMultisampleFramebufferAPPLE, vFv)

0 comments on commit d719809

Please sign in to comment.