summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2016-07-06 20:49:58 -0700
committerFrancisco Jerez <currojerez@riseup.net>2016-08-25 18:36:08 -0700
commit3daa0fae4b39a271f50f473edbe44712b6c8f040 (patch)
tree0b02c8669d1aedfe9615d6f1118be8b84c9434a1 /src/mesa/drivers/dri/i965/brw_fs_cse.cpp
parentdb123df74773f458e573a9c034ee783570a3ed0f (diff)
downloadexternal_mesa3d-3daa0fae4b39a271f50f473edbe44712b6c8f040.zip
external_mesa3d-3daa0fae4b39a271f50f473edbe44712b6c8f040.tar.gz
external_mesa3d-3daa0fae4b39a271f50f473edbe44712b6c8f040.tar.bz2
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>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_cse.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_cse.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
index befbf14..0c769dd 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
@@ -191,6 +191,7 @@ instructions_match(fs_inst *a, fs_inst *b, bool *negate)
a->header_size == b->header_size &&
a->shadow_compare == b->shadow_compare &&
a->pi_noperspective == b->pi_noperspective &&
+ a->target == b->target &&
a->sources == b->sources &&
operands_match(a, b, negate);
}