summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv50/nv50_program.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-06-16 22:24:16 +1000
committerBen Skeggs <[email protected]>2008-06-29 15:46:19 +1000
commitbb9efb5534a652878161e28bd73039eff5b11014 (patch)
tree298c27678a56fa1ef0d9b520cd0e1107f046e3c8 /src/gallium/drivers/nv50/nv50_program.c
parent94999d39d43d24a702f4cb55b515906d03a57277 (diff)
nv50: separate state validation and upload, similar to nv40
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_program.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_program.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c
index 21945410b17..7bb2f454bb9 100644
--- a/src/gallium/drivers/nv50/nv50_program.c
+++ b/src/gallium/drivers/nv50/nv50_program.c
@@ -1615,8 +1615,7 @@ nv50_vertprog_validate(struct nv50_context *nv50)
so_data (so, p->cfg.high_temp);
so_method(so, tesla, 0x140c, 1);
so_data (so, 0); /* program start offset */
- so_emit(nv50->screen->nvws, so);
- so_ref(NULL, &so);
+ so_ref(so, &nv50->state.vertprog);
}
void
@@ -1655,8 +1654,7 @@ nv50_fragprog_validate(struct nv50_context *nv50)
so_data (so, p->cfg.high_temp);
so_method(so, tesla, 0x1414, 1);
so_data (so, 0); /* program start offset */
- so_emit(nv50->screen->nvws, so);
- so_ref(NULL, &so);
+ so_ref(so, &nv50->state.fragprog);
}
void