summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2018-06-15 17:58:17 +0100
committerEric Engestrom <[email protected]>2018-06-18 12:15:18 +0100
commit4d08c1e7d15f7d2c0a406cf1c79314511778b38f (patch)
treeb25894de6be78d2f915e46ce00c230181528ab02 /src/amd
parente8eb84826e30ffcb54f69a7aec9181f969418eb2 (diff)
radv: fix bitwise check
Fixes: 922cd38172b8a2bc286bd "radv: implement out-of-order rasterization when it's safe on VI+" Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_pipeline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index ccbcbbadd55..113622bb0ce 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -622,7 +622,7 @@ radv_blend_check_commutativity(struct radv_blend_state *blend,
(1u << VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA);
if (dst == VK_BLEND_FACTOR_ONE &&
- (src_allowed && (1u << src))) {
+ (src_allowed & (1u << src))) {
/* Addition is commutative, but floating point addition isn't
* associative: subtle changes can be introduced via different
* rounding. Be conservative, only enable for min and max.