minor simplifcation in vertex_fetch()
authorBrian <brian.paul@tungstengraphics.com>
Fri, 9 Nov 2007 14:54:28 +0000 (07:54 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 9 Nov 2007 14:55:08 +0000 (07:55 -0700)
src/mesa/pipe/draw/draw_vertex_shader_llvm.c

index 4f48db610fe8d0fce614d198f6a32f13a7a7c5fb..3e005a76f3131a612e9625b382970e9a0cad43fa 100644 (file)
@@ -87,14 +87,7 @@ void vertex_fetch(struct draw_context *draw,
                            + draw->vertex_buffer[buf].buffer_offset
                            + draw->vertex_element[attr].src_offset
                            + elt * draw->vertex_buffer[buf].pitch);
-      float p[4];
-
-      fetch_attrib4(src, draw->vertex_element[attr].src_format, p);
-
-      inputs[attr][0] = p[0]; /*X*/
-      inputs[attr][1] = p[1]; /*Y*/
-      inputs[attr][2] = p[2]; /*Z*/
-      inputs[attr][3] = p[3]; /*W*/
+      fetch_attrib4(src, draw->vertex_element[attr].src_format, inputs[attr]);
    }
 }