diff options
author | Roland Scheidegger <sroland@vmware.com> | 2009-12-24 00:55:49 +0100 |
---|---|---|
committer | Roland Scheidegger <sroland@vmware.com> | 2009-12-24 00:55:49 +0100 |
commit | 1278507e3bf2e83c7027820a0d313de267a440ff (patch) | |
tree | 8ef332af09c8d644a56b6d3456d495e23c3dc047 /src/gallium/drivers/softpipe/sp_state_fs.c | |
parent | f44b0ff84338c2184ef4f2cbb752bf62f4fff1fc (diff) | |
download | external_mesa3d-1278507e3bf2e83c7027820a0d313de267a440ff.zip external_mesa3d-1278507e3bf2e83c7027820a0d313de267a440ff.tar.gz external_mesa3d-1278507e3bf2e83c7027820a0d313de267a440ff.tar.bz2 |
gallium: adapt drivers to pipe_constant_buffer removal
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_state_fs.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_state_fs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/softpipe/sp_state_fs.c b/src/gallium/drivers/softpipe/sp_state_fs.c index b41f7e8..fa85946 100644 --- a/src/gallium/drivers/softpipe/sp_state_fs.c +++ b/src/gallium/drivers/softpipe/sp_state_fs.c @@ -152,7 +152,7 @@ softpipe_delete_vs_state(struct pipe_context *pipe, void *vs) void softpipe_set_constant_buffer(struct pipe_context *pipe, uint shader, uint index, - const struct pipe_constant_buffer *buf) + const struct pipe_buffer *buf) { struct softpipe_context *softpipe = softpipe_context(pipe); @@ -160,8 +160,7 @@ softpipe_set_constant_buffer(struct pipe_context *pipe, assert(index == 0); /* note: reference counting */ - pipe_buffer_reference(&softpipe->constants[shader].buffer, - buf ? buf->buffer : NULL); + pipe_buffer_reference(&softpipe->constants[shader], buf); softpipe->dirty |= SP_NEW_CONSTANTS; } |