i965/fs: Optimize float conversions of byte/word extract.
authorMatt Turner <mattst88@gmail.com>
Thu, 21 Jan 2016 17:10:09 +0000 (09:10 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 4 Mar 2016 19:52:34 +0000 (11:52 -0800)
commit1f862e923cba1d5cd54a707f70f0be113635e855
tree076cbf6c8bc3d091ac7b2703acc17c1f9314143f
parent905ff861982450831a56d112036f68a751337441
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>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp