gallium/cso: Put the comment about shader in the code for future reference.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 22 Feb 2012 08:41:19 +0000 (08:41 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 22 Feb 2012 08:41:19 +0000 (08:41 +0000)
src/gallium/auxiliary/cso_cache/cso_context.h

index aabf70c7a747439816469c6feb91284cd94fcc0f..8cc1bbf9de708e30c423e5beef5988e2783eeb99 100644 (file)
@@ -185,6 +185,13 @@ cso_restore_clip(struct cso_context *cso);
 
 /* fragment sampler view state */
 
+/*
+ * We don't provide shader caching in CSO.  Most of the time the api provides
+ * object semantics for shaders anyway, and the cases where it doesn't
+ * (eg mesa's internally-generated texenv programs), it will be up to
+ * the state tracker to implement their own specialized caching.
+ */
+
 void
 cso_set_fragment_sampler_views(struct cso_context *cso,
                                uint count,