diff options
author | José Fonseca <[email protected]> | 2009-08-23 06:35:09 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-08-29 09:21:41 +0100 |
commit | c022e15d1e56ba3a9c6b74eef6556d6063e2e322 (patch) | |
tree | 86d4db84ea403791b5eba29ebc2f336bab07e305 /src/gallium/drivers/llvmpipe/lp_setup.c | |
parent | 8c7c108d712f17a5f307b9c8914b4abc4d5f148e (diff) |
llvmpipe: Pass fragment context to generated function in a single structure.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c index 421cccd302e..34bcb9912d4 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_setup.c @@ -120,8 +120,6 @@ shade_quads(struct llvmpipe_context *llvmpipe, unsigned nr) { struct lp_fragment_shader *fs = llvmpipe->fs; - void *constants; - struct tgsi_sampler **samplers; struct quad_header *quad = quads[0]; const unsigned x = quad->input.x0; const unsigned y = quad->input.y0; @@ -164,8 +162,6 @@ shade_quads(struct llvmpipe_context *llvmpipe, else depth = NULL; - constants = llvmpipe->mapped_constants[PIPE_SHADER_FRAGMENT]; - samplers = (struct tgsi_sampler **)llvmpipe->tgsi.frag_samplers_list; /* TODO: blend color */ assert((((uintptr_t)mask) & 0xf) == 0); @@ -174,16 +170,14 @@ shade_quads(struct llvmpipe_context *llvmpipe, assert((((uintptr_t)llvmpipe->blend_color) & 0xf) == 0); /* run shader */ - fs->current->jit_function( x, - y, + fs->current->jit_function( &llvmpipe->jit_context, + x, y, quad->coef->a0, quad->coef->dadx, quad->coef->dady, - constants, &mask[0][0], color, - depth, - samplers); + depth); } |