aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_fs_generator.cpp
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2017-11-16 13:35:01 -0800
committerMatt Turner <[email protected]>2017-11-17 12:14:38 -0800
commitf4276ef7ef4b92bdcb2f43b34ff95a3189fc0ce1 (patch)
treefad96459d0ad65ccd62da67270ef8f48283f3f74 /src/intel/compiler/brw_fs_generator.cpp
parent822fd2341db49cbbe813114d2d0fc1b66de4807c (diff)
i965: Move common code out of #ifdef
I'm going to change the call in a later patch and with the difference in indentation level it wasn't immediately obvious that the calls were identical. Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_fs_generator.cpp')
-rw-r--r--src/intel/compiler/brw_fs_generator.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/intel/compiler/brw_fs_generator.cpp b/src/intel/compiler/brw_fs_generator.cpp
index 46f9a338ea2..96691ac3ffc 100644
--- a/src/intel/compiler/brw_fs_generator.cpp
+++ b/src/intel/compiler/brw_fs_generator.cpp
@@ -2192,17 +2192,14 @@ fs_generator::generate_code(const cfg_t *cfg, int dispatch_width)
annotation_finalize(&annotation, p->next_insn_offset);
#ifndef NDEBUG
- bool validated = brw_validate_instructions(devinfo, p->store,
- start_offset,
- p->next_insn_offset,
- &annotation);
+ bool validated =
#else
if (unlikely(debug_flag))
+#endif
brw_validate_instructions(devinfo, p->store,
start_offset,
p->next_insn_offset,
&annotation);
-#endif
int before_size = p->next_insn_offset - start_offset;
brw_compact_instructions(p, start_offset, annotation.ann_count,