i965/fs: Optimize float conversions of byte/word extract

Graphics / Mesa 3D Graphics Library / Mesa - Matt Turner [gmail.com] - 4 March 2016 13:52 UTC

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%)

1f862e9 i965/fs: Optimize float conversions of byte/word extract.
src/mesa/drivers/dri/i965/brw_fs.h | 2 ++
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 46 ++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+)

Upstream: cgit.freedesktop.org


  • Share