diff options
author | Ben Skeggs <[email protected]> | 2008-06-23 00:14:21 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2008-06-23 00:14:21 +1000 |
commit | 5a01060eb95cb2cb168cb7224ecc805020584c91 (patch) | |
tree | 8c1f4fee11b2eae2df8a32108bfee6a32910faa7 /src/gallium/drivers/nv10/nv10_state.c | |
parent | aa3ab377e6e2e5811cdd704d87c3e24acb5eff72 (diff) |
nouveau: update for interface changes + hack around gallium x86_64 bustage
Diffstat (limited to 'src/gallium/drivers/nv10/nv10_state.c')
-rw-r--r-- | src/gallium/drivers/nv10/nv10_state.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv10/nv10_state.c b/src/gallium/drivers/nv10/nv10_state.c index 4dcb9a31ab1..11664fae2af 100644 --- a/src/gallium/drivers/nv10/nv10_state.c +++ b/src/gallium/drivers/nv10/nv10_state.c @@ -469,6 +469,8 @@ nv10_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index, if (buf->size && (mapped = ws->buffer_map(ws, buf->buffer, PIPE_BUFFER_USAGE_CPU_READ))) { memcpy(nv10->constbuf[shader], mapped, buf->size); + nv10->constbuf_nr[shader] = + buf->size / (4 * sizeof(float)); ws->buffer_unmap(ws, buf->buffer); } } |