mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 04:40:11 +01:00
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 <siglesias@igalia.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
822fd2341d
commit
f4276ef7ef
2 changed files with 4 additions and 9 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -2178,15 +2178,13 @@ generate_code(struct brw_codegen *p,
|
|||
annotation_finalize(&annotation, p->next_insn_offset);
|
||||
|
||||
#ifndef NDEBUG
|
||||
bool validated = brw_validate_instructions(devinfo, p->store,
|
||||
0, p->next_insn_offset,
|
||||
&annotation);
|
||||
bool validated =
|
||||
#else
|
||||
if (unlikely(debug_flag))
|
||||
#endif
|
||||
brw_validate_instructions(devinfo, p->store,
|
||||
0, p->next_insn_offset,
|
||||
&annotation);
|
||||
#endif
|
||||
|
||||
int before_size = p->next_insn_offset;
|
||||
brw_compact_instructions(p, 0, annotation.ann_count, annotation.ann);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue