Mesa (master): gallium/cso: Put the comment about shader in the code for future reference.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Wed Feb 22 08:42:41 UTC 2012
Module: Mesa
Branch: master
Commit: 3dd7b53178cb085a1ff3d87844fa51487f8892fc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3dd7b53178cb085a1ff3d87844fa51487f8892fc
Author: José Fonseca <jfonseca at vmware.com>
Date: Wed Feb 22 08:41:19 2012 +0000
gallium/cso: Put the comment about shader in the code for future reference.
---
src/gallium/auxiliary/cso_cache/cso_context.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.h b/src/gallium/auxiliary/cso_cache/cso_context.h
index aabf70c..8cc1bbf 100644
--- a/src/gallium/auxiliary/cso_cache/cso_context.h
+++ b/src/gallium/auxiliary/cso_cache/cso_context.h
@@ -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,
More information about the mesa-commit
mailing list