i965/fs: Allow scalar source regions on SNB math instructions.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 28 May 2016 06:29:14 +0000 (23:29 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 31 May 2016 22:57:41 +0000 (15:57 -0700)
commitc1107cec44ab030c7fcc97c67baa12df1cc9d7b5
treea4a5cd95074d3e50eaffdbc4c1bca8560264702f
parent06d8765bc09ecd8ff73fff424c8cfec645cb0ded
i965/fs: Allow scalar source regions on SNB math instructions.

I haven't found any evidence that this isn't supported by the
hardware, in fact according to the SNB hardware spec:

 "The supported regioning modes for math instructions are align16,
  align1 with the following restrictions:
   - Scalar source is supported.
  [...]
   - Source and destination offset must be the same, except the case of
     scalar source."

Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_eu_emit.c
src/mesa/drivers/dri/i965/brw_fs_builder.h
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp