summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-01-08 15:40:14 +0100
committerChristoph Bumiller <[email protected]>2011-01-08 15:40:14 +0100
commit90e29afcb62411b69d57dac76fe89c69c9936ed6 (patch)
tree9227f27fe7eb8eaab17344243df5b00cae2ba59b /src/gallium/drivers/nvfx
parent703f3597ad0e2b7134d4ea0fc2194eb67161910a (diff)
nvfx,nv50: pipe_reference the constant buffers
Diffstat (limited to 'src/gallium/drivers/nvfx')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_state.c b/src/gallium/drivers/nvfx/nvfx_state.c
index 54619037d82..f3dcb205c61 100644
--- a/src/gallium/drivers/nvfx/nvfx_state.c
+++ b/src/gallium/drivers/nvfx/nvfx_state.c
@@ -304,7 +304,7 @@ nvfx_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index,
{
struct nvfx_context *nvfx = nvfx_context(pipe);
- nvfx->constbuf[shader] = buf;
+ pipe_resource_reference(&nvfx->constbuf[shader], buf);
nvfx->constbuf_nr[shader] = buf ? (buf->width0 / (4 * sizeof(float))) : 0;
if (shader == PIPE_SHADER_VERTEX) {