diff options
author | Matt Turner <mattst88@gmail.com> | 2016-01-21 09:10:09 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2016-03-04 11:52:34 -0800 |
commit | 1f862e923cba1d5cd54a707f70f0be113635e855 (patch) | |
tree | 076cbf6c8bc3d091ac7b2703acc17c1f9314143f /src/mesa/drivers/dri/i965/brw_fs.h | |
parent | 905ff861982450831a56d112036f68a751337441 (diff) | |
download | external_mesa3d-1f862e923cba1d5cd54a707f70f0be113635e855.zip external_mesa3d-1f862e923cba1d5cd54a707f70f0be113635e855.tar.gz external_mesa3d-1f862e923cba1d5cd54a707f70f0be113635e855.tar.bz2 |
i965/fs: Optimize float conversions of byte/word extract.
instructions in affected programs: 31535 -> 29966 (-4.98%)
helped: 23
cycles in affected programs: 272648 -> 266022 (-2.43%)
helped: 14
HURT: 1
The patch decreases the number of instructions in the two Unigine
programs by:
#1721: 4374 -> 4155 instructions (-5.01%)
#1706: 3582 -> 3363 instructions (-6.11%)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h index 7446ca1..21c7813 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.h +++ b/src/mesa/drivers/dri/i965/brw_fs.h @@ -272,6 +272,8 @@ public: void emit_percomp(const brw::fs_builder &bld, const fs_inst &inst, unsigned wr_mask); + bool optimize_extract_to_float(nir_alu_instr *instr, + const fs_reg &result); bool optimize_frontfacing_ternary(nir_alu_instr *instr, const fs_reg &result); |