intel/fs: Cap dst-aligned region stride to maximum representable hstride value.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 17 Jan 2019 02:49:47 +0000 (18:49 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 21 Feb 2019 22:07:25 +0000 (14:07 -0800)
commit7f9f6263c1ecc3ab9e1984f5a9814f6820eb85cf
tree92819ca950a340c14a55481d1fa621e09f49a7aa
parente2f475ddffabff5cbe2bcff78ff42ce899869b29
intel/fs: Cap dst-aligned region stride to maximum representable hstride value.

This is required in combination with the following commit, because
otherwise if a source region with an extended 8+ stride is present in
the instruction (which we're about to declare legal) we'll end up
emitting code that attempts to write to such a region, even though
strides greater than four are still illegal for the destination.

Tested-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_fs_lower_regioning.cpp