i965g: fix some asserts

This commit is contained in:
Keith Whitwell
2009-11-04 23:33:08 +00:00
parent 7a49bd6d15
commit e84e86ecb2
+2 -2
View File
@@ -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);
}
}