i965/fs: fix assign_constant_locations() for doubles
authorConnor Abbott <connor.w.abbott@intel.com>
Wed, 29 Jul 2015 00:06:12 +0000 (17:06 -0700)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 10 May 2016 09:25:07 +0000 (11:25 +0200)
commit4f3888c1caf3455f61b2e20ccf7c39e59f4feaf3
tree33ecaed6b5c7a6c24345b9428c01d91df8d75e06
parentcc64c9e441acce45b1a7531d1762d152ad9ce22f
i965/fs: fix assign_constant_locations() for doubles

Uniform doubles will read two registers, in which case we need to mark
both as being live.

v2 (Sam):
  - Use a formula to get the number of registers read with proper
    units (Curro).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_fs.cpp