summaryrefslogtreecommitdiff
path: root/cogl/cogl-debug.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2010-12-03 12:01:18 +0000
committerRobert Bragg <robert@linux.intel.com>2010-12-07 16:00:32 +0000
commit0087910574e448b534186d98764652e8c222af9d (patch)
tree62efdf68b7b4a27796d382d41b553860c2771c9a /cogl/cogl-debug.h
parent046434e222cff3717a0a2c46cdfb6b399621511a (diff)
downloadcogl-0087910574e448b534186d98764652e8c222af9d.tar.gz
arbfp: Adds an ARBfp program cache
This adds a cache (A GHashTable) of ARBfp programs and before ever starting to code-generate a new program we will always first try and find an existing program in the cache. This uses _cogl_pipeline_hash and _cogl_pipeline_equal to hash and compare the keys for the cache. There is a new COGL_DEBUG=disable-program-caches option that can disable the cache for debugging purposes.
Diffstat (limited to 'cogl/cogl-debug.h')
-rw-r--r--cogl/cogl-debug.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/cogl/cogl-debug.h b/cogl/cogl-debug.h
index 4c49d738..1a06bf73 100644
--- a/cogl/cogl-debug.h
+++ b/cogl/cogl-debug.h
@@ -59,7 +59,8 @@ typedef enum {
COGL_DEBUG_BITMAP = 1 << 26,
COGL_DEBUG_DISABLE_NPOT_TEXTURES = 1 << 27,
COGL_DEBUG_WIREFRAME = 1 << 28,
- COGL_DEBUG_DISABLE_SOFTWARE_CLIP = 1 << 29
+ COGL_DEBUG_DISABLE_SOFTWARE_CLIP = 1 << 29,
+ COGL_DEBUG_DISABLE_PROGRAM_CACHES = 1 << 30
} CoglDebugFlags;
#ifdef COGL_ENABLE_DEBUG