aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-11-04 23:33:08 +0000
committerKeith Whitwell <[email protected]>2009-11-04 23:33:08 +0000
commite84e86ecb2e83b756a0153d315f946d60d695a54 (patch)
treeca6fb1da4d7842212c7b026c04ef9169c3719aad /src/gallium
parent7a49bd6d15d7778db637340d695095dafb43a7fe (diff)
i965g: fix some asserts
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/i965/brw_state_upload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i965/brw_state_upload.c b/src/gallium/drivers/i965/brw_state_upload.c
index 4132c6ac69b..a71af4d2b91 100644
--- a/src/gallium/drivers/i965/brw_state_upload.c
+++ b/src/gallium/drivers/i965/brw_state_upload.c
@@ -193,8 +193,8 @@ enum pipe_error brw_validate_state( struct brw_context *brw )
{
const struct brw_fragment_shader *fp = brw->curr.fragment_shader;
if (fp) {
- assert(fp->info.file_max[TGSI_FILE_SAMPLER] < brw->curr.num_samplers &&
- fp->info.texture_max < brw->curr.num_textures);
+ assert(fp->info.file_max[TGSI_FILE_SAMPLER] < (int)brw->curr.num_samplers);
+ assert(fp->info.texture_max <= brw->curr.num_textures);
}
}