summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-10-16 18:32:57 -0600
committerBrian Paul <[email protected]>2012-10-17 10:13:30 -0600
commit198d1bdb5f446ee055d5591a61c0174f87171820 (patch)
tree89b78b4137ed72cb6ac276f3e9938aa0b29cd869 /src/gallium/auxiliary
parent34a5fd2a39d463c426327a4fe98fc18e1301370d (diff)
tgsi: silence MSVC signed/unsigned comparison warnings
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_dump.c2
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_exec.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.c b/src/gallium/auxiliary/tgsi/tgsi_dump.c
index c202033921f..3e6f76a4d6b 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_dump.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_dump.c
@@ -406,7 +406,7 @@ iter_property(
struct tgsi_iterate_context *iter,
struct tgsi_full_property *prop )
{
- int i;
+ unsigned i;
struct dump_ctx *ctx = (struct dump_ctx *)iter;
TXT( "PROPERTY " );
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index 68bb598cf3c..0b58f097ecf 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
@@ -1057,7 +1057,7 @@ fetch_src_file_channel(const struct tgsi_exec_machine *mach,
const uint *buf = (const uint *)mach->Consts[constbuf];
const int pos = index->i[i] * 4 + swizzle;
/* const buffer bounds check */
- if (pos < 0 || pos >= mach->ConstsSize[constbuf]) {
+ if (pos < 0 || pos >= (int) mach->ConstsSize[constbuf]) {
if (0) {
/* Debug: print warning */
static int count = 0;