diff options
author | Ben Skeggs <[email protected]> | 2009-03-07 17:14:24 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2009-03-07 17:49:09 +1000 |
commit | ca95d71a4bc63e2ea45abf9096a3da802819ef92 (patch) | |
tree | d97d43c54f8e841c3bc01d3de1d313dc42034cfe /src/gallium/drivers/nv50/nv50_program.c | |
parent | f2ec26cf52fcbf98139cb9e31520183189d09861 (diff) |
nouveau: make stateobjs start off with refcount of 1
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_program.c')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_program.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv50/nv50_program.c b/src/gallium/drivers/nv50/nv50_program.c index 308eb34784c..2d15868ae84 100644 --- a/src/gallium/drivers/nv50/nv50_program.c +++ b/src/gallium/drivers/nv50/nv50_program.c @@ -1719,6 +1719,7 @@ nv50_vertprog_validate(struct nv50_context *nv50) so_method(so, tesla, 0x140c, 1); so_data (so, 0); /* program start offset */ so_ref(so, &nv50->state.vertprog); + so_ref(NULL, &so); } void @@ -1758,6 +1759,7 @@ nv50_fragprog_validate(struct nv50_context *nv50) so_method(so, tesla, 0x1414, 1); so_data (so, 0); /* program start offset */ so_ref(so, &nv50->state.fragprog); + so_ref(NULL, &so); } void |