summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-06-28 20:33:17 -0700
committerMatt Turner <[email protected]>2014-07-01 08:55:52 -0700
commite65844023492c1ebc12c3fd299fe614164fe32a2 (patch)
tree43220797e566b0142904122446ba5da5bb5f5942 /src/mesa/drivers/dri
parent2e90d1fb62a6ef53c15eff76e242c510145178a9 (diff)
i965/vec4: Remove useless conditionals.
Setting a couple of bits is the same cost or less as conditionally setting a couple of bits.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_generator.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp b/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
index ef0e60767eb..d7a4fcea413 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_generator.cpp
@@ -1266,12 +1266,9 @@ vec4_generator::generate_code(exec_list *instructions)
brw_inst *last = &p->store[pre_emit_nr_insn];
- if (inst->conditional_mod)
- brw_inst_set_cond_modifier(brw, last, inst->conditional_mod);
- if (inst->no_dd_clear)
- brw_inst_set_no_dd_clear(brw, last, true);
- if (inst->no_dd_check)
- brw_inst_set_no_dd_check(brw, last, true);
+ brw_inst_set_cond_modifier(brw, last, inst->conditional_mod);
+ brw_inst_set_no_dd_clear(brw, last, inst->no_dd_clear);
+ brw_inst_set_no_dd_check(brw, last, inst->no_dd_check);
}
}