1 #include "../coregl_internal.h"
4 #include "tracepath/coregl_tracepath.h"
6 #undef MY_MODULE_TSTATE
9 #include "fastpath/coregl_fastpath.h"
11 #undef MY_MODULE_TSTATE
14 #include "appopt/coregl_appopt.h"
16 #undef MY_MODULE_TSTATE
21 init_modules_fastpath();
22 init_modules_appopt();
23 init_modules_tracepath();
25 reset_modules_override();
31 deinit_modules_tracepath();
32 deinit_modules_appopt();
33 deinit_modules_fastpath();
37 reset_modules_override()
39 // Step 1 : Initialization
42 // Step 2 : User Define Modules : Sequence is important! (Last module's API is called first)
43 fastpath_apply_overrides();
44 appopt_apply_overrides();
46 // Step 3 : Common Wrapping Modules
47 tracepath_apply_overrides();
51 init_modules_tstate(GLThreadState *tstate)
53 // Initialization for each thread state : Sequence is important!
54 init_modules_tstate_tracepath(tstate);
55 init_modules_tstate_fastpath(tstate);
56 init_modules_tstate_appopt(tstate);
60 deinit_modules_tstate(GLThreadState *tstate)
62 // De-Initialization for each thread state(rollback) : Sequence is important!
63 deinit_modules_tstate_appopt(tstate);
64 deinit_modules_tstate_fastpath(tstate);
65 deinit_modules_tstate_tracepath(tstate);