summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300/r300_vertprog.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2009-07-16 22:32:46 +0200
committerNicolai Hähnle <[email protected]>2009-07-27 20:32:03 +0200
commitb4b286b9804203568f71a010ce1c1f163f0f8d6f (patch)
tree9d243e3feb3c7d9873e3eab2358971f59c7dc3fe /src/mesa/drivers/dri/r300/r300_vertprog.c
parentd29cdde569cc685beb791a6693f8ae28e2ef5115 (diff)
r300: Remove GLcontext requirement from radeon_nqssadce
Signed-off-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_vertprog.c')
-rw-r--r--src/mesa/drivers/dri/r300/r300_vertprog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_vertprog.c b/src/mesa/drivers/dri/r300/r300_vertprog.c
index ab5ca4322e2..f98de34e93c 100644
--- a/src/mesa/drivers/dri/r300/r300_vertprog.c
+++ b/src/mesa/drivers/dri/r300/r300_vertprog.c
@@ -1496,7 +1496,7 @@ static void addArtificialOutputs(GLcontext *ctx, struct gl_program *prog)
static void nqssadceInit(struct nqssadce_state* s)
{
- r300ContextPtr r300 = R300_CONTEXT(s->Ctx);
+ r300ContextPtr r300 = (r300ContextPtr)(s->UserData);
GLuint fp_reads;
fp_reads = r300->selected_fp->Base->InputsRead;
@@ -1582,7 +1582,7 @@ static struct r300_vertex_program *build_program(GLcontext *ctx,
.IsNativeSwizzle = &swizzleIsNative,
.BuildSwizzle = NULL
};
- radeonNqssaDce(ctx, prog, &nqssadce);
+ radeonNqssaDce(prog, &nqssadce, r300);
/* We need this step for reusing temporary registers */
_mesa_optimize_program(ctx, prog);