From 2c308c66e2c35f4df25f3ec546ffd21dc37df89a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 22 Sep 2011 17:19:47 -0600 Subject: [PATCH] svga: remove emit_consts() offset parameter It was always zero. --- src/gallium/drivers/svga/svga_state_constants.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/svga/svga_state_constants.c b/src/gallium/drivers/svga/svga_state_constants.c index b8208890963..a1c5ee84f63 100644 --- a/src/gallium/drivers/svga/svga_state_constants.c +++ b/src/gallium/drivers/svga/svga_state_constants.c @@ -212,8 +212,11 @@ static enum pipe_error emit_const_range( struct svga_context *svga, } +/** + * Emit all the constants in a constant buffer for a shader stage. + */ static enum pipe_error -emit_consts(struct svga_context *svga, unsigned offset, unsigned shader) +emit_consts(struct svga_context *svga, unsigned shader) { struct svga_screen *ss = svga_screen(svga->pipe.screen); struct pipe_transfer *transfer = NULL; @@ -221,6 +224,7 @@ emit_consts(struct svga_context *svga, unsigned offset, unsigned shader) const float (*data)[4] = NULL; unsigned i; enum pipe_error ret = PIPE_OK; + const unsigned offset = 0; assert(shader < PIPE_SHADER_TYPES); @@ -267,7 +271,7 @@ emit_fs_consts(struct svga_context *svga, unsigned dirty) const struct svga_fs_compile_key *key = &result->key.fkey; enum pipe_error ret = PIPE_OK; - ret = emit_consts( svga, 0, PIPE_SHADER_FRAGMENT ); + ret = emit_consts( svga, PIPE_SHADER_FRAGMENT ); if (ret != PIPE_OK) return ret; @@ -334,7 +338,7 @@ emit_vs_consts(struct svga_context *svga, unsigned dirty) /* SVGA_NEW_VS_CONST_BUFFER */ - ret = emit_consts( svga, 0, PIPE_SHADER_VERTEX ); + ret = emit_consts( svga, PIPE_SHADER_VERTEX ); if (ret != PIPE_OK) return ret; -- 2.30.2