diff options
author | Zack Rusin <zack@tungstengraphics.com> | 2007-11-07 13:26:45 -0500 |
---|---|---|
committer | Zack Rusin <zack@tungstengraphics.com> | 2007-12-11 09:49:33 -0500 |
commit | 6dc4e6ae15676cf4acdebb9c798bfa4083ad1e14 (patch) | |
tree | 3bf05cec05d14cf6d907c8b6b41a03459a8c6550 /src/mesa/pipe/softpipe/sp_quad_fs.c | |
parent | 9d6e6e86d9592afbdbaa83fc89891e6813fc3f2f (diff) |
Redo the way we pass arguments to the llvm.
simply pass aligned arrays, they should cast to vectors without
any problems. also remove unnecessary memset
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_quad_fs.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_quad_fs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_fs.c b/src/mesa/pipe/softpipe/sp_quad_fs.c index 5ea07f95a4..251b47341a 100644 --- a/src/mesa/pipe/softpipe/sp_quad_fs.c +++ b/src/mesa/pipe/softpipe/sp_quad_fs.c @@ -173,12 +173,11 @@ shade_quad_llvm(struct quad_stage *qs, { struct quad_shade_stage *qss = quad_shade_stage(qs); struct softpipe_context *softpipe = qs->softpipe; - float dests[4][16][4]; + float dests[4][16][4] ALIGN16_ATTRIB; + float inputs[4][16][4] ALIGN16_ATTRIB; const float fx = (float) quad->x0; const float fy = (float) quad->y0; struct gallivm_prog *llvm = qss->llvm_prog; - float inputs[4][16][4]; - memset(inputs, 0, sizeof(inputs)); inputs[0][0][0] = fx; inputs[1][0][0] = fx + 1.0f; |