summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-09-22 17:17:34 -0600
committerBrian Paul <[email protected]>2011-09-23 07:59:00 -0600
commit7c6a5134bac6976fff8aa7bb5408bfbea9be9389 (patch)
tree2119a21875c988e7bf238056cdf69781c6f47718 /src/gallium/drivers/svga
parentc27f24f6f00d632110667a34cb0b213e4fd7f762 (diff)
svga: s/int/unsigned/ in svga_state_constants.c
Be consistent with other functions in the file. And add some comments.
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_state_constants.c10
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 f5386762670..b8208890963 100644
--- a/src/gallium/drivers/svga/svga_state_constants.c
+++ b/src/gallium/drivers/svga/svga_state_constants.c
@@ -58,9 +58,13 @@ static int svga_shader_type( unsigned shader )
/*
* Check and emit one shader constant register.
+ * \param shader PIPE_SHADER_FRAGMENT or PIPE_SHADER_VERTEX
+ * \param i which float[4] constant to change
+ * \param value the new float[4] value
*/
static enum pipe_error
-emit_const(struct svga_context *svga, unsigned shader, int i, const float *value)
+emit_const(struct svga_context *svga, unsigned shader, unsigned i,
+ const float *value)
{
enum pipe_error ret = PIPE_OK;
@@ -70,7 +74,7 @@ emit_const(struct svga_context *svga, unsigned shader, int i, const float *value
if (memcmp(svga->state.hw_draw.cb[shader][i], value, 4 * sizeof(float)) != 0) {
if (SVGA_DEBUG & DEBUG_CONSTS)
- debug_printf("%s %s %d: %f %f %f %f\n",
+ debug_printf("%s %s %u: %f %f %f %f\n",
__FUNCTION__,
shader == PIPE_SHADER_VERTEX ? "VERT" : "FRAG",
i,
@@ -209,7 +213,7 @@ static enum pipe_error emit_const_range( struct svga_context *svga,
static enum pipe_error
-emit_consts(struct svga_context *svga, int offset, unsigned shader)
+emit_consts(struct svga_context *svga, unsigned offset, unsigned shader)
{
struct svga_screen *ss = svga_screen(svga->pipe.screen);
struct pipe_transfer *transfer = NULL;