summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2014-02-19 13:08:24 +1000
committerDave Airlie <airlied@gmail.com>2014-02-27 09:19:05 +1000
commit8062ac44908dcdac55ac41689152b66250f93115 (patch)
tree900b4b11d346d5985d82472b34ec3dbd64453126
parent77e8288759a355a376352e5934dbd3993c76fb4f (diff)
fix some signed/unsigned mixups
-rw-r--r--src/gallium/renderer/graw_shader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/renderer/graw_shader.c b/src/gallium/renderer/graw_shader.c
index 9e97a1be213..c5838c48b0c 100644
--- a/src/gallium/renderer/graw_shader.c
+++ b/src/gallium/renderer/graw_shader.c
@@ -640,9 +640,9 @@ iter_instruction(struct tgsi_iterate_context *iter,
vtype = "ivec4";
if (stype == TGSI_TYPE_UNSIGNED && imd->type == TGSI_IMM_INT32)
- imm_stypeprefix = "ivec4";
- else if (stype == TGSI_TYPE_SIGNED && imd->type == TGSI_IMM_UINT32)
imm_stypeprefix = "uvec4";
+ else if (stype == TGSI_TYPE_SIGNED && imd->type == TGSI_IMM_UINT32)
+ imm_stypeprefix = "ivec4";
else if (stype == TGSI_TYPE_FLOAT || stype == TGSI_TYPE_UNTYPED) {
if (imd->type == TGSI_IMM_INT32)
imm_stypeprefix = "intBitsToFloat";
@@ -672,7 +672,7 @@ iter_instruction(struct tgsi_iterate_context *iter,
snprintf(temp, 25, "%.8g", imd->val[idx].f);
break;
case TGSI_IMM_UINT32:
- snprintf(temp, 25, "%u", imd->val[idx].ui);
+ snprintf(temp, 25, "%uU", imd->val[idx].ui);
break;
case TGSI_IMM_INT32:
snprintf(temp, 25, "%d", imd->val[idx].i);