i965: Refactor SIMD16-to-2xSIMD8 checks.
authorNeil Roberts <neil@linux.intel.com>
Thu, 19 Mar 2015 18:18:49 +0000 (18:18 +0000)
committerNeil Roberts <neil@linux.intel.com>
Fri, 20 Mar 2015 13:25:41 +0000 (13:25 +0000)
commitbc4b18d2977a94a6fb513bf5955236a0e92298ca
tree599719e5935874f13b955e1f19fc0bdd84a8609a
parentc02c4b567ce001f6605c46e71e089692b837bf26
i965: Refactor SIMD16-to-2xSIMD8 checks.

The places that were checking whether 3-source instructions are
supported have now been combined into a small helper function. This
will be used in the next patch to add an additonal restriction.

Based on a patch by Kenneth Graunke.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_generator.cpp