Mesa (master): st/mesa: index can be negative in the PROGRAM_CONSTANT case

Brian Paul brianp at kemper.freedesktop.org
Thu Aug 16 14:58:44 UTC 2012


Module: Mesa
Branch: master
Commit: 8cc1860d4a55c93ce12a649c281012b37212ffbd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8cc1860d4a55c93ce12a649c281012b37212ffbd

Author: Niels Ole Salscheider <niels_ole at salscheider-online.de>
Date:   Sun Aug 12 18:35:10 2012 +0200

st/mesa: index can be negative in the PROGRAM_CONSTANT case

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/mesa/state_tracker/st_glsl_to_tgsi.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
index 39717b6..9f58312 100644
--- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp
@@ -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:




More information about the mesa-commit mailing list