i965/fs: fix compares for doubles
authorConnor Abbott <connor.w.abbott@intel.com>
Tue, 4 Aug 2015 01:08:58 +0000 (18:08 -0700)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 10 May 2016 09:25:07 +0000 (11:25 +0200)
commite83f51d54e9c3db11526b66a741352135eae6f52
treeca93b01db5cea5c6da3768335f6be56a784b5f8c
parenta5d7e144eaf43fee37e6ff9e2de194407087632b
i965/fs: fix compares for doubles

The destination has to have the same source as the type, or else the
simulator will complain. As a result, we need to emit a CMP that
outputs a 64-bit wide result and then do a strided MOV to pick out the
low 32 bits of each channel.

v2: Use subscript() instead of stride() (Curro)

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp