OSDN Git Service

intel/fs: Take into account amount of data read in spilling cost heuristic.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 20 Apr 2017 18:42:27 +0000 (11:42 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sun, 30 Apr 2017 08:46:29 +0000 (09:46 +0100)
commitb38423210efb11fab5cbbb1a63f10d32dabf0419
tree65238e0fae66b6be5c3c75349d92609bedbeb360
parentba6fd491a18695e72b467689d605ecd84419f40f
intel/fs: Take into account amount of data read in spilling cost heuristic.

Until now the spilling cost calculation was neglecting the amount of
data read from the register during the spilling cost calculation.
This caused it to make suboptimal decisions in some cases leading to
higher memory bandwidth usage than necessary.

Improves Unigine Heaven performance by ~4% on BDW, reversing an
unintended FPS regression from my previous commit
147e71242ce539ff28e282f009c332818c35f5ac with n=12 and statistical
significance 5%.  In addition SynMark2 OglCSDof performance is
improved by an additional ~5% on SKL, and a Kerbal Space Program
apitrace around the Moho planet I can provide on request improves by
~20%.

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
(cherry picked from commit 58324389be7bc7c5e10093b9cc0a8efa9b4c93a9)
src/intel/compiler/brw_fs_reg_allocate.cpp