st/mesa: index can be negative in the PROGRAM_CONSTANT case
authorNiels Ole Salscheider <niels_ole@salscheider-online.de>
Sun, 12 Aug 2012 16:35:10 +0000 (18:35 +0200)
committerBrian Paul <brianp@vmware.com>
Thu, 16 Aug 2012 14:56:09 +0000 (08:56 -0600)
NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp

index 39717b6..9f58312 100644 (file)
@@ -4028,7 +4028,7 @@ dst_register(struct st_translate *t,
 static struct ureg_src
 src_register(struct st_translate *t,
              gl_register_file file,
-             GLuint index)
+             GLint index)
 {
    switch(file) {
    case PROGRAM_UNDEFINED: