summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cache.c
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2007-10-03 08:50:27 -0400
committerZack Rusin <[email protected]>2007-10-03 08:50:27 -0400
commit5e4309ee92560caed70ff6975c4a59aaa5d86542 (patch)
treed92a08a9e41565eba4e35c6e3dbc66fef7021b23 /src/mesa/state_tracker/st_cache.c
parent51345cb3c4d85a9e88ac35b59e938b0692df6205 (diff)
Explain a little better what we're doing here.
Diffstat (limited to 'src/mesa/state_tracker/st_cache.c')
-rw-r--r--src/mesa/state_tracker/st_cache.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_cache.c b/src/mesa/state_tracker/st_cache.c
index 1686721990a..c0f712ba1d1 100644
--- a/src/mesa/state_tracker/st_cache.c
+++ b/src/mesa/state_tracker/st_cache.c
@@ -39,10 +39,17 @@
#include "pipe/cso_cache/cso_cache.h"
#include "pipe/cso_cache/cso_hash.h"
-/* This function will either find the state of the given template
- * in the cache or it will create a new state state from the given
- * template, will insert it in the cache and return it.
+
+/* Those function will either find the state of the given template
+ * in the cache or they will create a new state from the given
+ * template, insert it in the cache and return it.
+ */
+
+/*
+ * If the driver returns 0 from the create method then they will assign
+ * the data member of the cso to be the template itself.
*/
+
const struct cso_blend * st_cached_blend_state(struct st_context *st,
const struct pipe_blend_state *templ)
{