i965/fs: add stride restrictions for copy propagation
authorConnor Abbott <connor.w.abbott@intel.com>
Fri, 14 Aug 2015 19:00:13 +0000 (12:00 -0700)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 23 Nov 2015 07:30:30 +0000 (08:30 +0100)
commitd982922b184930a4ceed1d97b772cce5c371865d
tree9d0bd5957a0ac3b75b971caa3223c21c6ea89b81
parent95ac3b1daeaa7d40d49fa2e0bdef46346c2996d5
i965/fs: add stride restrictions for copy propagation

There are various restrictions on what the hstride can be that depend on
the Gen, and now that we're using hstride == 2 for packing/unpacking
doubles, we're going to run into these restrictions a lot more often.
Pull them out into a separate function, and move the one restriction we
checked previously into it.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp