[Mesa-dev] [PATCH 3/7] translate_sse: Make those comments less abstract.

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


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

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

diff --git a/src/gallium/auxiliary/translate/translate_sse.c b/src/gallium/auxiliary/translate/translate_sse.c
index e25d450..8dd30c4 100644
--- a/src/gallium/auxiliary/translate/translate_sse.c
+++ b/src/gallium/auxiliary/translate/translate_sse.c
@@ -114,11 +114,11 @@ struct translate_sse
    struct translate_buffer buffer[TRANSLATE_MAX_ATTRIBS];
    unsigned nr_buffers;
 
-   /* Multiple buffer variants can map to a single buffer. */
+   /* A buffer can require multiple groups to translate all elements */
    struct translate_group group[TRANSLATE_MAX_ATTRIBS];
    unsigned nr_groups;
 
-   /* Multiple elements can map to a single buffer variant. */
+   /* A group can translate multiple elements */
    unsigned element_to_group[TRANSLATE_MAX_ATTRIBS];
 
    boolean use_instancing;
@@ -1515,7 +1515,7 @@ translate_sse2_create(const struct translate_key *key)
          }
 
          /*
-          * Map vertex element to vertex buffer group.
+          * Find or create a compatible group for the element
           */
          for (j = 0; j < p->nr_groups; j++) {
             if (p->group[j].buffer_index ==
-- 
1.9.1



More information about the mesa-dev mailing list