From 3dd7b53178cb085a1ff3d87844fa51487f8892fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 22 Feb 2012 08:41:19 +0000 Subject: [PATCH] gallium/cso: Put the comment about shader in the code for future reference. --- src/gallium/auxiliary/cso_cache/cso_context.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/auxiliary/cso_cache/cso_context.h b/src/gallium/auxiliary/cso_cache/cso_context.h index aabf70c7a74..8cc1bbf9de7 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, -- 2.30.2