i965: Respect stride and subreg_offset for ATTR registers
authorKristian Høgsberg Kristensen <krh@bitplanet.net>
Wed, 23 Sep 2015 23:57:47 +0000 (16:57 -0700)
committerKristian Høgsberg Kristensen <krh@bitplanet.net>
Thu, 24 Sep 2015 17:17:27 +0000 (10:17 -0700)
commit2ea16966ae66d4dd5c5dcb996d7996d9c734bbee
tree0a2ae6da37d3c5088a65827c7f5721fdb12a66bb
parent200aee424790f3167fcb175f4798af27783fe364
i965: Respect stride and subreg_offset for ATTR registers

When we assign hw regs to attributes, we don't incorporate the stride
and subreg_offset from the fs_reg. It's rarely used, but the integer
multiplication lowering uses unusual stride and subreg_offset
combination breaks when one source is an attribute.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91970
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Kristian Høgsberg Kristensen <krh@bitplanet.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp