radv: fix bitwise check
authorEric Engestrom <eric.engestrom@intel.com>
Fri, 15 Jun 2018 16:58:17 +0000 (17:58 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Mon, 18 Jun 2018 11:15:18 +0000 (12:15 +0100)
Fixes: 922cd38172b8a2bc286bd "radv: implement out-of-order rasterization when it's safe on VI+"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_pipeline.c

index ccbcbbadd55e672a572a25c1314c1212b25c6989..113622bb0ce1ea0f88f7e4964f7c546b771c2977 100644 (file)
@@ -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.