From: José Fonseca Date: Wed, 22 Feb 2012 08:41:19 +0000 (+0000) Subject: gallium/cso: Put the comment about shader in the code for future reference. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3dd7b53178cb085a1ff3d87844fa51487f8892fc;p=mesa.git gallium/cso: Put the comment about shader in the code for future reference. --- 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,