diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-04-15 18:00:05 -0700 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-04-22 16:00:34 -0700 |
commit | 28e9601d0e681411b60a7de8be9f401b0df77d29 (patch) | |
tree | b047241dc1652427e349488899f44fb3345eaa5e /src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp | |
parent | 73bf8f3d6b6b571175c5ce324b44fef26915875f (diff) | |
download | external_mesa3d-28e9601d0e681411b60a7de8be9f401b0df77d29.zip external_mesa3d-28e9601d0e681411b60a7de8be9f401b0df77d29.tar.gz external_mesa3d-28e9601d0e681411b60a7de8be9f401b0df77d29.tar.bz2 |
i965: Add a devinfo field to backend_visitor and use it for gen checks
Reviewed-by: Matt Turner <mattst88@gmail.com>
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 740ba67..52aa559 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); |