summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/nv40/nv40_context.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-11-23 18:54:11 +1100
committerBen Skeggs <skeggsb@gmail.com>2007-11-23 18:54:19 +1100
commit558f3abb49475ba0aad585e7fb0c07121aecde6f (patch)
tree5553c9e561ddf359858a4cddc8228a387746081c /src/mesa/pipe/nv40/nv40_context.c
parentdd1500b8b436dc4a009455489ade7dcf65f03d07 (diff)
nv40: support for keeping multiple vtxprogs on the hw at the same time.
Diffstat (limited to 'src/mesa/pipe/nv40/nv40_context.c')
-rw-r--r--src/mesa/pipe/nv40/nv40_context.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/pipe/nv40/nv40_context.c b/src/mesa/pipe/nv40/nv40_context.c
index 6f27091643..ba9d875e0e 100644
--- a/src/mesa/pipe/nv40/nv40_context.c
+++ b/src/mesa/pipe/nv40/nv40_context.c
@@ -241,6 +241,14 @@ nv40_create(struct pipe_winsys *pipe_winsys, struct nouveau_winsys *nvws,
return NULL;
}
+ if (nvws->res_init(&nv40->vertprog.exec_heap, 512) ||
+ nvws->res_init(&nv40->vertprog.data_heap, 256)) {
+ nvws->res_free(&nv40->vertprog.exec_heap);
+ nvws->res_free(&nv40->vertprog.data_heap);
+ free(nv40);
+ return NULL;
+ }
+
if (!nv40_init_hwctx(nv40, curie_class)) {
free(nv40);
return NULL;