i965: Fix math instruction hstride assertions on Broadwell.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 31 Jan 2014 01:50:02 +0000 (17:50 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 1 Feb 2014 01:50:09 +0000 (17:50 -0800)
commite1cdafe6f78b4e271fd22da2e8d92c2684282e77
treed84e137075b7f7ec1dcf414245d177e078d732ef
parentd8878055f5f46726822d03cd3a81e53e5ee50059
i965: Fix math instruction hstride assertions on Broadwell.

In the final revision of my gen8_generator patch, I updated the MATH
instruction's assertion from (dst.hstride == 1) to check that source and
destination hstride matched.  Unfortunately, I didn't test this enough,
and many Piglit tests fail this test.

The documentation indicates that "scalar source is also supported",
which we believe means <0,1,0> access mode (hstride == 0).  If hstride
is non-zero, then it must match the destination register.

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