i965/fs: Fix fs_inst::regs_read() for uniform pull constant loads
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 18 Jun 2015 01:02:11 +0000 (18:02 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 30 Jun 2015 22:58:12 +0000 (15:58 -0700)
commitaca5228011e7b9e96f3bd3a621c88e63ba47a4f3
treeeb87d056cd3c07f7074d26d29320feada7f2e101
parent241317d59ab440bdcda25bacaadacfb3b4c2dd93
i965/fs: Fix fs_inst::regs_read() for uniform pull constant loads

Previously, fs_inst::regs_read() fell back to depending on the register
width for the second source.  This isn't really correct since it isn't a
SIMD8 value at all, but a SIMD4x2 value.  This commit changes it to
explicitly be always one register.

v2: Use mlen for determining the number of registers read

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Acked-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_fs.cpp