intel/fs: Simplify fs_visitor::emit_samplepos_setup
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 13 Jan 2017 22:53:00 +0000 (14:53 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Jun 2018 20:19:38 +0000 (13:19 -0700)
commit38aee1a06d595ab4066240a5c04500dacaa01f6b
treeb628269734fc3ba425104cc8c56c9c120015874b
parent244a0ff3a8b47ae1aca549a801baafbeb5712213
intel/fs: Simplify fs_visitor::emit_samplepos_setup

The original code manually handled splitting the MOVs to 8-wide to
handle various regioning restrictions.  Now that we have a SIMD width
splitting pass that handles these things, we can just emit everything at
the full width and let the SIMD splitting pass handle it.  We also now
have a useful "subscript" helper which is designed exactly for the case
where you want to take a W type and read it as a vector of Bs so we may
as well use that too.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/compiler/brw_fs.cpp