diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-11-09 07:54:28 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-11-09 07:55:08 -0700 |
commit | 50a56cd755d17e4b754fc019badbda0f113c3065 (patch) | |
tree | dde2cab6456b33b939b9b27bc65af74fdee24e35 /src/mesa/pipe/draw/draw_vertex_shader_llvm.c | |
parent | 33cf20bb458ed736d4404d4e3340a117c7d07f63 (diff) |
minor simplifcation in vertex_fetch()
Diffstat (limited to 'src/mesa/pipe/draw/draw_vertex_shader_llvm.c')
-rw-r--r-- | src/mesa/pipe/draw/draw_vertex_shader_llvm.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mesa/pipe/draw/draw_vertex_shader_llvm.c b/src/mesa/pipe/draw/draw_vertex_shader_llvm.c index 4f48db610f..3e005a76f3 100644 --- a/src/mesa/pipe/draw/draw_vertex_shader_llvm.c +++ b/src/mesa/pipe/draw/draw_vertex_shader_llvm.c @@ -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]); } } |