i965/fs: Fix fs_inst::regs_read() for sources in the ATTR file.
authorFrancisco Jerez <currojerez@riseup.net>
Wed, 5 Aug 2015 13:29:30 +0000 (16:29 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 6 Aug 2015 11:12:12 +0000 (14:12 +0300)
commit42a18ca76057621ae7d8812b29ea2245d6ff282d
tree8041c0d70b1b21179151c4690cc41097a695deba
parente77a4a9b1f66de383043df95aada40fd5a004913
i965/fs: Fix fs_inst::regs_read() for sources in the ATTR file.

Otherwise it would crash on Gen8 with scalar VS.  The issue can easily
be reproduced with the following patch, but I don't see any reason why
it wouldn't be possible to end up with an ATTR argument here even
without it.

CC: mesa-stable@lists.freedesktop.org
Reviewed-by: Connor Abbott <connor.w.abbott@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/brw_fs.cpp