i965/fs: Fix copy propagation of load payload for double operands
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 18 Jan 2016 09:44:20 +0000 (10:44 +0100)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 16 May 2016 07:55:32 +0000 (09:55 +0200)
commitac9b966aac4d0276de889990f3b170e0b939c542
tree5762f1305e62edef861fbdbdc4daffc5636b07ce
parent70dc19f9d628f0459db93466fbf65af1bfe75af1
i965/fs: Fix copy propagation of load payload for double operands

Specifically, consider the size of the data type of the operand to compute
the number of registers written.

v2 (Sam):
- Fix line width (Jordan).
- Add an assert (Jordan).
- Use REG_SIZE in the calculation of regs_written (Curro)

v3 (Sam):
- Fix assert and calculation of regs_written (Curro).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp