summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv50/nv50_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_state.c')
-rw-r--r--src/gallium/drivers/nv50/nv50_state.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv50/nv50_state.c b/src/gallium/drivers/nv50/nv50_state.c
index 5e1fff46e4..ed2fd3b0f8 100644
--- a/src/gallium/drivers/nv50/nv50_state.c
+++ b/src/gallium/drivers/nv50/nv50_state.c
@@ -651,8 +651,7 @@ nv50_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index,
if (nv50->constbuf[shader][index])
nv50_bufctx_del_resident(nv50, NV50_BUFCTX_CONSTANT,
- nv50_resource(
- nv50->constbuf[shader][index]));
+ nv04_resource(nv50->constbuf[shader][index]));
pipe_resource_reference(&nv50->constbuf[shader][index], res);