summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/llvm/gallivm.cpp
diff options
context:
space:
mode:
authorZack Rusin <zack@tungstengraphics.com>2007-11-01 05:53:44 -0400
committerZack Rusin <zack@tungstengraphics.com>2007-11-02 07:15:18 -0400
commit2af2f7e419c1b6d796822a049f019afe3dfc6021 (patch)
tree79fbe1a91cbf298d7ae655694a8d2dbaa8868e9f /src/mesa/pipe/llvm/gallivm.cpp
parent25d91c23ff834a129e537891ec3ad63197d37da5 (diff)
Change the fragment shader signature to better match actual
arguments that we need there.
Diffstat (limited to 'src/mesa/pipe/llvm/gallivm.cpp')
-rw-r--r--src/mesa/pipe/llvm/gallivm.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/pipe/llvm/gallivm.cpp b/src/mesa/pipe/llvm/gallivm.cpp
index 48c7babc45..6642f15498 100644
--- a/src/mesa/pipe/llvm/gallivm.cpp
+++ b/src/mesa/pipe/llvm/gallivm.cpp
@@ -796,18 +796,19 @@ typedef int (*fragment_shader_runner)(float x, float y,
struct tgsi_interp_coef *coef,
float (*consts)[4], int num_consts,
struct tgsi_sampler *samplers,
- int num_samplers);
+ unsigned *sampler_units);
+
int gallivm_fragment_shader_exec(struct gallivm_prog *prog,
float x, float y,
float (*dests)[32][4],
struct tgsi_interp_coef *coef,
float (*consts)[4],
struct tgsi_sampler *samplers,
- int num_samplers)
+ unsigned *sampler_units)
{
fragment_shader_runner runner = reinterpret_cast<fragment_shader_runner>(prog->function);
assert(runner);
- runner(x, y, dests, coef, consts, prog->num_consts, samplers, num_samplers);
+ runner(x, y, dests, coef, consts, prog->num_consts, samplers, sampler_units);
return 0;
}