summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2009-03-07 17:14:24 +1000
committerBen Skeggs <[email protected]>2009-03-07 17:49:09 +1000
commitca95d71a4bc63e2ea45abf9096a3da802819ef92 (patch)
treed97d43c54f8e841c3bc01d3de1d313dc42034cfe /src/gallium/drivers/nouveau
parentf2ec26cf52fcbf98139cb9e31520183189d09861 (diff)
nouveau: make stateobjs start off with refcount of 1
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r--src/gallium/drivers/nouveau/nouveau_stateobj.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nouveau_stateobj.h b/src/gallium/drivers/nouveau/nouveau_stateobj.h
index 666e061ac38..97859110b5f 100644
--- a/src/gallium/drivers/nouveau/nouveau_stateobj.h
+++ b/src/gallium/drivers/nouveau/nouveau_stateobj.h
@@ -32,7 +32,7 @@ so_new(unsigned push, unsigned reloc)
struct nouveau_stateobj *so;
so = MALLOC(sizeof(struct nouveau_stateobj));
- pipe_reference_init(&so->reference, 0);
+ pipe_reference_init(&so->reference, 1);
so->push = MALLOC(sizeof(unsigned) * push);
so->reloc = MALLOC(sizeof(struct nouveau_stateobj_reloc) * reloc);