]> git.cworth.org Git - fips/commit
Add a new context.c file with context_enter and context_leave functions
authorCarl Worth <cworth@cworth.org>
Mon, 28 Oct 2013 21:34:26 +0000 (14:34 -0700)
committerCarl Worth <cworth@cworth.org>
Mon, 28 Oct 2013 21:34:26 +0000 (14:34 -0700)
commitbc106316b96ce7bfdbec3ee54ba37e49f156dea5
tree5c55c55e4e8f4f643eb3fb36815ad82ec7f173db
parent67c01d9b406d07b558255f35872cc549e4493e05
Add a new context.c file with context_enter and context_leave functions

So far, this just factors out some duplicated code from glxwrap.c and
eglwrap.c into the new context_enter/leave functions.

Eventually, some of the code currently living in metrics.c should
migrate up into context.c, (such as the global current_context
variable in metrics.c).

Additionally, the context.c layer will give us a natural place to
query things such as "is the AMD_performance_monitor extension
available?".
Makefile.local
context.c [new file with mode: 0644]
context.h [new file with mode: 0644]
eglwrap.c
glxwrap.c