aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_fs.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2018-06-25 19:50:56 -0700
committerIan Romanick <[email protected]>2019-04-18 12:37:48 -0700
commitad98fbc21743cac60abd40a98f0796a8db4a250d (patch)
tree8f49702e05f88e814d30dc0a797233afcf88e3a3 /src/intel/compiler/brw_fs.h
parent90430d04886227099253ed38de089aee0d713ec5 (diff)
intel/fs: Refactor code generation for nir_op_fsign to its own function
v2: Call emit_fsign from inside the existing switch statement. Suggested by Matt. Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_fs.h')
-rw-r--r--src/intel/compiler/brw_fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_fs.h b/src/intel/compiler/brw_fs.h
index 391d46d5471..b0147b39d32 100644
--- a/src/intel/compiler/brw_fs.h
+++ b/src/intel/compiler/brw_fs.h
@@ -187,6 +187,8 @@ public:
void emit_gen6_gather_wa(uint8_t wa, fs_reg dst);
fs_reg resolve_source_modifiers(const fs_reg &src);
void emit_discard_jump();
+ void emit_fsign(const class brw::fs_builder &, const nir_alu_instr *instr,
+ fs_reg result, fs_reg *op);
bool opt_peephole_sel();
bool opt_peephole_csel();
bool opt_peephole_predicated_break();