summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrian Nguyen <brnguyen@nvidia.com>2014-01-23 20:00:18 -0800
committerbrnguyen <brnguyen@nvidia.com>2014-01-23 20:16:33 -0800
commitfdf67a7dcd9ac034a6e25531cb318f62a8fe9319 (patch)
treeb65691a35d69a014e85830481c867f0bd548cbf4 /tests
parent8225879ab01456e3e37443e3e100f456d0f90737 (diff)
Define driver ABI for patching libglvnd entrypoints
This defines several callbacks to be used by vendor libraries for rewriting top-level entrypoints defined in libglvnd: - initiatePatch(): libglvnd calls into this function at make current time to determine whether entrypoint patching is possible with the given stub type and code size. The vendor library will notify libglvnd whether offsets are needed based on a generation number. - getOffsetHook(): libglvnd calls into the vendor library with this hook for each loaded interface library so the vendor can lookup the stub locations for rewriting. - finalizePatch(): libglvnd calls into this function after the vendor library has updated its stub locations to complete the patch.
Diffstat (limited to 'tests')
-rw-r--r--tests/GLX_dummy/GLX_dummy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/GLX_dummy/GLX_dummy.c b/tests/GLX_dummy/GLX_dummy.c
index fb16992..d4f0f6c 100644
--- a/tests/GLX_dummy/GLX_dummy.c
+++ b/tests/GLX_dummy/GLX_dummy.c
@@ -511,6 +511,7 @@ static const __GLXapiImports dummyImports =
.getProcAddress = dummyGetProcAddress,
.getDispatchAddress = dummyGetDispatchAddress,
.setDispatchIndex = dummySetDispatchIndex,
+ .patchCallbacks = NULL,
}
};