i965/fs: Don't CSE render target messages with different target index.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 7 Jul 2016 03:49:58 +0000 (20:49 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 26 Aug 2016 01:36:08 +0000 (18:36 -0700)
commit3daa0fae4b39a271f50f473edbe44712b6c8f040
tree0b02c8669d1aedfe9615d6f1118be8b84c9434a1
parentdb123df74773f458e573a9c034ee783570a3ed0f
i965/fs: Don't CSE render target messages with different target index.

We weren't checking the fs_inst::target field when comparing whether
two instructions are equal.  For FB writes it doesn't matter because
they aren't CSE-able anyway, but this would have become a problem with
FB reads which are expression-like instructions.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_cse.cpp