diff options
author | Michal Krol <[email protected]> | 2010-03-23 16:21:03 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-03-29 16:06:10 +0200 |
commit | 37877b192e4f9e753f5e837520090206b342a6ea (patch) | |
tree | fbbf5f124b7d1e5953196548960b442ab7426461 | |
parent | 1c2912ee7a47170bbaa8a71d4af729d0caf17f04 (diff) |
softpipe: Map GS constants, too.
-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 2b089c28316..d6f3229bed7 100644 --- a/src/gallium/drivers/softpipe/sp_state_fs.c +++ b/src/gallium/drivers/softpipe/sp_state_fs.c @@ -181,9 +181,8 @@ softpipe_set_constant_buffer(struct pipe_context *pipe, /* note: reference counting */ pipe_buffer_reference(&softpipe->constants[shader][index], constants); - if(shader == PIPE_SHADER_VERTEX) { - draw_set_mapped_constant_buffer(softpipe->draw, PIPE_SHADER_VERTEX, index, - data, size); + if (shader == PIPE_SHADER_VERTEX || shader == PIPE_SHADER_GEOMETRY) { + draw_set_mapped_constant_buffer(softpipe->draw, shader, index, data, size); } softpipe->mapped_constants[shader][index] = data; |