[Mesa-dev] [PATCH 1/7] translate_sse: Explain what struct translate_buffer_variant is for.

Andreas Hartmetz ahartmetz at gmail.com
Sun Apr 13 13:29:32 PDT 2014


From: Andreas Hartmetz <andreas.hartmetz at kdab.com>

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

diff --git a/src/gallium/auxiliary/translate/translate_sse.c b/src/gallium/auxiliary/translate/translate_sse.c
index 1b698cd..24d8017 100644
--- a/src/gallium/auxiliary/translate/translate_sse.c
+++ b/src/gallium/auxiliary/translate/translate_sse.c
@@ -54,6 +54,13 @@ struct translate_buffer
    unsigned max_index;
 };
 
+/* We can only trivially chain together compatible translations. Additional
+ * state changes (e.g. reloading  input pointers) are required between
+ * incompatible translations. So we group compatible translations together
+ * to minimize those state changes.
+ * This describes a group of trivially compatible translations.
+ * ptr is only used at runtime (not code generation time).
+ */
 struct translate_buffer_variant
 {
    unsigned buffer_index;
-- 
1.9.1



More information about the mesa-dev mailing list