i965/fs: Allocate single register at a time for constants.
authorMatt Turner <mattst88@gmail.com>
Mon, 1 Feb 2016 19:14:01 +0000 (11:14 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 4 Feb 2016 17:30:58 +0000 (09:30 -0800)
commit8c7a42b3e880804e201ee9582a0a73763cdd2a01
treebb4a2b5ce8a598df28d9ad84123e3b7ab2d8d771
parent8ec24678ac0f459af4acb4b40a70d7802906e41a
i965/fs: Allocate single register at a time for constants.

No instruction counts changed, but:

  total cycles in shared programs: 64834502 -> 64781530 (-0.08%)
  cycles in affected programs: 16331544 -> 16278572 (-0.32%)
  helped: 4757
  HURT: 4288

  GAINED: 66
  LOST:   20

I remember trying this when I first wrote the pass, but it wasn't
helpful at the time.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp