i965/fs: Fix single-precision to double-precision conversions for CHV/BSW/BXT
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 13 Jun 2016 07:13:23 +0000 (03:13 -0400)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Fri, 17 Jun 2016 06:46:02 +0000 (08:46 +0200)
commit0177dbb6c2fe876a9761a4a97eec44accfa4c007
treeb4b55cfe9dd848df5bd1f845bf7a85a5351d8e76
parent48593eaf2db4100b66d924a7f0fc6222a3a5df8d
i965/fs: Fix single-precision to double-precision conversions for CHV/BSW/BXT

From the Cherryview PRM, Volume 7, 3D Media GPGPU Engine,
Register Region Restrictions:

   "When source or destination is 64b (...), regioning in Align1
    must follow these rules:

    1. Source and destination horizontal stride must be aligned to
       the same qword.
    (...)"

v2:
- Fix it for Broxton too.

v3:
- Remove inst->regs_written change as it is not necessary (Ken)

Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95462
Tested-by: Mark Janes <mark.a.janes@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp