i965: Assert that IF with cmod is Gen6 only.
authorMatt Turner <mattst88@gmail.com>
Thu, 14 Nov 2013 18:36:12 +0000 (10:36 -0800)
committerMatt Turner <mattst88@gmail.com>
Sat, 16 Nov 2013 07:31:42 +0000 (23:31 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index f89390c346c26d0f52ac227b955b8da4dcd89055..795e01efdfbf4fa5b3787d1076c9280a39f63cbd 100644 (file)
@@ -193,11 +193,11 @@ fs_visitor::IF(uint32_t predicate)
    return inst;
 }
 
-/** Gen6+ IF with embedded comparison. */
+/** Gen6 IF with embedded comparison. */
 fs_inst *
 fs_visitor::IF(fs_reg src0, fs_reg src1, uint32_t condition)
 {
-   assert(brw->gen >= 6);
+   assert(brw->gen == 6);
    fs_inst *inst = new(mem_ctx) fs_inst(BRW_OPCODE_IF,
                                         reg_null_d, src0, src1);
    inst->conditional_mod = condition;
index a036e2dbb06eaaad826bbd7704edd8b8250aa0cb..423f69301e8efd606ccd57a21e81414ded687d45 100644 (file)
@@ -177,11 +177,11 @@ vec4_visitor::IF(uint32_t predicate)
    return inst;
 }
 
-/** Gen6+ IF with embedded comparison. */
+/** Gen6 IF with embedded comparison. */
 vec4_instruction *
 vec4_visitor::IF(src_reg src0, src_reg src1, uint32_t condition)
 {
-   assert(brw->gen >= 6);
+   assert(brw->gen == 6);
 
    vec4_instruction *inst;