diff options
author | Russell King <rmk@arm.linux.org.uk> | 2015-05-27 22:19:44 +0100 |
---|---|---|
committer | Russell King <rmk@arm.linux.org.uk> | 2015-06-29 12:58:31 +0100 |
commit | 4655d4fefaa25a533d7e700e01c1c32855bced5d (patch) | |
tree | 8a759e8e8802e43bc89f08d4674fe6d0647017ed | |
parent | 0ec6ab3a1debc44f8b62cc059dfc9f7b983061c9 (diff) |
etnaviv: remove unnecessary (duplicated) check
In the source-only code, if we're using the temporary pixmap, it will
have alpha, so etnaviv_workaround_nonalpha() will fail anyway. There's
no need to check for vSrc != vTemp.
Signed-off-by: Russell King <rmk@arm.linux.org.uk>
-rw-r--r-- | etnaviv/etnaviv_accel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/etnaviv/etnaviv_accel.c b/etnaviv/etnaviv_accel.c index 6effc78..26ed371 100644 --- a/etnaviv/etnaviv_accel.c +++ b/etnaviv/etnaviv_accel.c @@ -1486,8 +1486,7 @@ fprintf(stderr, "%s: i: op 0x%02x src=%p,%d,%d mask=%p,%d,%d dst=%p,%d,%d %ux%u\ * Apply the same work-around for a non-alpha source as for * a non-alpha destination. */ - if (vSrc != vTemp && - etnaviv_blend_src_alpha_normal(final_blend) && + if (etnaviv_blend_src_alpha_normal(final_blend) && etnaviv_workaround_nonalpha(vSrc)) { final_blend->alpha_mode |= VIVS_DE_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_GLOBAL; final_blend->src_alpha = 255; |