diff options
author | Patrice Mandin <[email protected]> | 2008-07-11 23:17:47 +0200 |
---|---|---|
committer | Patrice Mandin <[email protected]> | 2008-07-11 23:17:47 +0200 |
commit | c7086277546d065eb94ba8dbeca1620605f167ea (patch) | |
tree | c268d20322bf8989df4797ffece8349b5eaaf496 /src/gallium/drivers/nv30/nv30_state.c | |
parent | 5acbd0b0961089f9553adbe9b3d1341997ccb220 (diff) |
nv30: Move constant buffers out of vert/frag prog structures
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_state.c')
-rw-r--r-- | src/gallium/drivers/nv30/nv30_state.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv30/nv30_state.c b/src/gallium/drivers/nv30/nv30_state.c index 72b9515eb1a..aec6fa2b155 100644 --- a/src/gallium/drivers/nv30/nv30_state.c +++ b/src/gallium/drivers/nv30/nv30_state.c @@ -589,12 +589,13 @@ nv30_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index, { struct nv30_context *nv30 = nv30_context(pipe); + nv30->constbuf[shader] = buf->buffer; + nv30->constbuf_nr[shader] = buf->size / (4 * sizeof(float)); + if (shader == PIPE_SHADER_VERTEX) { - nv30->vertprog.constant_buf = buf->buffer; nv30->dirty |= NV30_NEW_VERTPROG; } else if (shader == PIPE_SHADER_FRAGMENT) { - nv30->fragprog.constant_buf = buf->buffer; nv30->dirty |= NV30_NEW_FRAGPROG; } } |