diff options
author | Stephane Marchesin <marchesin@icps.u-strasbg.fr> | 2008-10-30 23:52:59 +0100 |
---|---|---|
committer | Stephane Marchesin <marchesin@icps.u-strasbg.fr> | 2008-10-30 23:52:59 +0100 |
commit | b81a7dc2d8ba09b48d5022cf9ff65f2fad890e11 (patch) | |
tree | 444d58c24409b214f2048458a84e62e88360090e /src/gallium/auxiliary/gallivm/gallivm_cpu.cpp | |
parent | 443e102fdc8084dd2c73549c83de10524eb94b31 (diff) |
gallivm: replace the temp parameters of the JIT function with alloca'ed temps. This avoids useless writes of temporary results.
Diffstat (limited to 'src/gallium/auxiliary/gallivm/gallivm_cpu.cpp')
-rw-r--r-- | src/gallium/auxiliary/gallivm/gallivm_cpu.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/gallivm/gallivm_cpu.cpp b/src/gallium/auxiliary/gallivm/gallivm_cpu.cpp index 3a2f2878a3..93a9748bdb 100644 --- a/src/gallium/auxiliary/gallivm/gallivm_cpu.cpp +++ b/src/gallium/auxiliary/gallivm/gallivm_cpu.cpp @@ -179,8 +179,7 @@ struct gallivm_cpu_engine * gallivm_global_cpu_engine() typedef void (*vertex_shader_runner)(void *ainputs, void *dests, - float (*aconsts)[4], - void *temps); + float (*aconsts)[4]); #define MAX_TGSI_VERTICES 4 /*! @@ -223,8 +222,7 @@ int gallivm_cpu_vs_exec(struct gallivm_prog *prog, /* run shader */ runner(machine->Inputs, machine->Outputs, - (float (*)[4]) constants, - machine->Temps); + (float (*)[4]) constants); /* Unswizzle all output results */ |