diff options
author | Brian Paul <[email protected]> | 2011-09-22 17:19:47 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-23 07:59:00 -0600 |
commit | 2c308c66e2c35f4df25f3ec546ffd21dc37df89a (patch) | |
tree | 1ee34a5de995cd19cc8b0cf2f9af4fd759ec53b0 /src/gallium/drivers/svga | |
parent | 7c6a5134bac6976fff8aa7bb5408bfbea9be9389 (diff) |
svga: remove emit_consts() offset parameter
It was always zero.
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r-- | src/gallium/drivers/svga/svga_state_constants.c | 10 |
1 files 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; |