Fix fetching integer inputs.

This commit is contained in:
José Fonseca 2012-05-18 00:55:13 +01:00
parent 5d10d75727
commit 00eb74b275
1 changed files with 8 additions and 0 deletions

View File

@ -704,7 +704,15 @@ emit_fetch_input(
res = bld->inputs[reg->Register.Index][swizzle];
}
}
assert(res);
if (stype == TGSI_TYPE_UNSIGNED) {
res = LLVMBuildBitCast(builder, res, bld_base->uint_bld.vec_type, "");
} else if (stype == TGSI_TYPE_SIGNED) {
res = LLVMBuildBitCast(builder, res, bld_base->int_bld.vec_type, "");
}
return res;
}