diff options
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp b/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp index 740ba67bb94..52aa5590c2e 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp @@ -158,7 +158,7 @@ fs_visitor::opt_peephole_sel() enum brw_predicate predicate; bool predicate_inverse; - if (brw->gen == 6 && if_inst->conditional_mod) { + if (devinfo->gen == 6 && if_inst->conditional_mod) { /* For Sandybridge with IF with embedded comparison */ predicate = BRW_PREDICATE_NORMAL; predicate_inverse = false; @@ -213,7 +213,7 @@ fs_visitor::opt_peephole_sel() continue; /* Emit a CMP if our IF used the embedded comparison */ - if (brw->gen == 6 && if_inst->conditional_mod) { + if (devinfo->gen == 6 && if_inst->conditional_mod) { fs_inst *cmp_inst = CMP(reg_null_d, if_inst->src[0], if_inst->src[1], if_inst->conditional_mod); if_inst->insert_before(block, cmp_inst); |