From: Michal Krol Date: Tue, 23 Mar 2010 15:21:03 +0000 (+0100) Subject: softpipe: Map GS constants, too. X-Git-Tag: 062012170305~13788 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=37877b192e4f9e753f5e837520090206b342a6ea;p=profile%2Fivi%2Fmesa.git softpipe: Map GS constants, too. --- diff --git a/src/gallium/drivers/softpipe/sp_state_fs.c b/src/gallium/drivers/softpipe/sp_state_fs.c index 2b089c2..d6f3229 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;