r300g: fix assert in the rasterizer block for r3xx-r4xx
authorMarek Olšák <maraeo@gmail.com>
Mon, 16 Aug 2010 17:17:02 +0000 (19:17 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 16 Aug 2010 17:19:17 +0000 (19:19 +0200)
Reported-by: Niels Ole Salscheider <niels_ole@salscheider-online.de>
src/gallium/drivers/r300/r300_state_derived.c

index 4a63ed7fc13fdd85f581a74f719f835e93ba86b8..c8de3e1c523859d8303effd4525619efe5cf5c5d 100644 (file)
@@ -211,7 +211,7 @@ static void r300_rs_col(struct r300_rs_block* rs, int id, int ptr,
 static void r300_rs_col_write(struct r300_rs_block* rs, int id, int fp_offset,
                               enum r300_rs_col_write_type type)
 {
-    assert(type != WRITE_COLOR);
+    assert(type == WRITE_COLOR);
     rs->inst[id] |= R300_RS_INST_COL_CN_WRITE |
                     R300_RS_INST_COL_ADDR(fp_offset);
 }