summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/llvm/gallivm_cpu.cpp
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2008-02-13 04:38:10 -0500
committerZack Rusin <zack@tungstengraphics.com>2008-02-13 04:38:10 -0500
commit4bb1a14d901fcddb25efeeff49c4dea8ca872f73 (patch)
tree9abc2e5fe642b06374d6690035174918ebd12b06 /src/mesa/pipe/llvm/gallivm_cpu.cpp
parente179d5bdd199e3747773f5b07efcf9a635c41089 (diff)
handle temporaries in llvm code generated paths
Diffstat (limited to 'src/mesa/pipe/llvm/gallivm_cpu.cpp')
-rw-r--r--src/mesa/pipe/llvm/gallivm_cpu.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/pipe/llvm/gallivm_cpu.cpp b/src/mesa/pipe/llvm/gallivm_cpu.cpp
index 011cba55c2..dc4d92a72a 100644
--- a/src/mesa/pipe/llvm/gallivm_cpu.cpp
+++ b/src/mesa/pipe/llvm/gallivm_cpu.cpp
@@ -177,10 +177,7 @@ struct gallivm_cpu_engine * gallivm_global_cpu_engine()
typedef void (*vertex_shader_runner)(void *ainputs,
void *dests,
float (*aconsts)[4],
- int num_vertices,
- int num_inputs,
- int num_attribs,
- int num_consts);
+ void *temps);
/*!
@@ -191,12 +188,13 @@ typedef void (*vertex_shader_runner)(void *ainputs,
int gallivm_cpu_vs_exec(struct gallivm_prog *prog,
struct tgsi_exec_vector *inputs,
struct tgsi_exec_vector *dests,
- float (*consts)[4])
+ float (*consts)[4],
+ struct tgsi_exec_vector *temps)
{
vertex_shader_runner runner = reinterpret_cast<vertex_shader_runner>(prog->function);
assert(runner);
/*FIXME*/
- runner(inputs, dests, consts, 4, 4, 4, prog->num_consts);
+ runner(inputs, dests, consts, temps);
return 0;
}