summaryrefslogtreecommitdiff
path: root/src/mesa/pipe
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-12-10 02:07:47 +1100
committerBen Skeggs <skeggsb@gmail.com>2007-12-10 02:10:42 +1100
commit1a3987240a547ba6e625c864f10a033858de4c65 (patch)
treee33806bca6827580d8d604eaa904d91ce54cca3a /src/mesa/pipe
parent88b56c454513f5097b7806ffaa5c313881861504 (diff)
nouveau: give resources a start property
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r--src/mesa/pipe/nouveau/nouveau_winsys.h3
-rw-r--r--src/mesa/pipe/nv40/nv40_context.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/pipe/nouveau/nouveau_winsys.h b/src/mesa/pipe/nouveau/nouveau_winsys.h
index 4525f7113c..7b80027c3a 100644
--- a/src/mesa/pipe/nouveau/nouveau_winsys.h
+++ b/src/mesa/pipe/nouveau/nouveau_winsys.h
@@ -17,7 +17,8 @@ struct nouveau_winsys {
struct nouveau_channel *channel;
- int (*res_init)(struct nouveau_resource **heap, int size);
+ int (*res_init)(struct nouveau_resource **heap, unsigned start,
+ unsigned size);
int (*res_alloc)(struct nouveau_resource *heap, int size, void *priv,
struct nouveau_resource **);
void (*res_free)(struct nouveau_resource **);
diff --git a/src/mesa/pipe/nv40/nv40_context.c b/src/mesa/pipe/nv40/nv40_context.c
index 7b77c70e81..518ba3574f 100644
--- a/src/mesa/pipe/nv40/nv40_context.c
+++ b/src/mesa/pipe/nv40/nv40_context.c
@@ -241,8 +241,8 @@ 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)) {
+ if (nvws->res_init(&nv40->vertprog.exec_heap, 0, 512) ||
+ nvws->res_init(&nv40->vertprog.data_heap, 0, 256)) {
nvws->res_free(&nv40->vertprog.exec_heap);
nvws->res_free(&nv40->vertprog.data_heap);
free(nv40);