From: Andreas Hartmetz <andreas.hartm...@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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to