summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-06-04 08:59:00 -0700
committerEric Anholt <eric@anholt.net>2013-04-12 16:32:12 -0700
commit2cb7f1e766d28dd238274f74d9568ab4438c4965 (patch)
treecdc2f69424bc88a4fe15bd04a8247722f09e58aa /src/mesa/drivers/dri/i965/brw_fs_cse.cpp
parentdf25b4f3cf22282b06e622f3cf1f5855b8f767a8 (diff)
i965/fs: Add a helper function for checking for partial register updates.
These checks were all over, and every time I wrote one I had to try to decide again what the cases were for partial updates. v2: Fix inadvertent reladdr check removal. Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_cse.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_cse.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
index 2a8fd0be2e..b5c220090c 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
@@ -97,8 +97,7 @@ fs_visitor::opt_cse_local(bblock_t *block, exec_list *aeb)
inst = (fs_inst *) inst->next) {
/* Skip some cases. */
- if (is_expression(inst) && !inst->predicate &&
- !inst->force_uncompressed && !inst->force_sechalf &&
+ if (is_expression(inst) && !inst->is_partial_write() &&
!inst->conditional_mod)
{
bool found = false;