summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv40/nv40_draw.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-06-23 00:14:21 +1000
committerBen Skeggs <[email protected]>2008-06-23 00:14:21 +1000
commit5a01060eb95cb2cb168cb7224ecc805020584c91 (patch)
tree8c1f4fee11b2eae2df8a32108bfee6a32910faa7 /src/gallium/drivers/nv40/nv40_draw.c
parentaa3ab377e6e2e5811cdd704d87c3e24acb5eff72 (diff)
nouveau: update for interface changes + hack around gallium x86_64 bustage
Diffstat (limited to 'src/gallium/drivers/nv40/nv40_draw.c')
-rw-r--r--src/gallium/drivers/nv40/nv40_draw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv40/nv40_draw.c b/src/gallium/drivers/nv40/nv40_draw.c
index 1d78324dda8..2cf58e2950a 100644
--- a/src/gallium/drivers/nv40/nv40_draw.c
+++ b/src/gallium/drivers/nv40/nv40_draw.c
@@ -253,9 +253,11 @@ nv40_draw_elements_swtnl(struct pipe_context *pipe,
}
if (nv40->constbuf[PIPE_SHADER_VERTEX]) {
+ const unsigned nr = nv40->constbuf_nr[PIPE_SHADER_VERTEX];
+
map = ws->buffer_map(ws, nv40->constbuf[PIPE_SHADER_VERTEX],
PIPE_BUFFER_USAGE_CPU_READ);
- draw_set_mapped_constant_buffer(nv40->draw, map);
+ draw_set_mapped_constant_buffer(nv40->draw, map, nr);
}
draw_arrays(nv40->draw, mode, start, count);