[Mesa-dev] [PATCH 4/4] u_blitter: put a comment on util_blitter_cache_all_shaders()

Brian Paul brianp at vmware.com
Wed Oct 22 14:16:31 PDT 2014


---
 src/gallium/auxiliary/util/u_blitter.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index ea9094e..e59fa04 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -1009,6 +1009,13 @@ void *blitter_get_fs_texfetch_stencil(struct blitter_context_priv *ctx,
    }
 }
 
+
+/**
+ * Generate and save all fragment shaders that we will ever need for
+ * blitting.  Drivers which use the 'draw' fallbacks will typically use
+ * this to make sure we generate/use shaders that don't go through the
+ * draw module's wrapper functions.
+ */
 void util_blitter_cache_all_shaders(struct blitter_context *blitter)
 {
    struct blitter_context_priv *ctx = (struct blitter_context_priv*)blitter;
-- 
1.7.10.4



More information about the mesa-dev mailing list