r600/sb: Fix constant-logical-operand warning.
authorVinson Lee <vlee@freedesktop.org>
Wed, 10 Oct 2018 20:38:12 +0000 (13:38 -0700)
committerVinson Lee <vlee@freedesktop.org>
Fri, 12 Oct 2018 17:58:58 +0000 (10:58 -0700)
commitcc33621e3b83e9bb0d89f8c6fd4e79700fe89c27
tree692d5d5f7226cd1e08f722bfc4f8157473c1b21f
parentca168ec00865d0ff1a0012d0ca51272f8b926d05
r600/sb: Fix constant-logical-operand warning.

sb/sb_bc_parser.cpp:620:27: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
        if (cf->bc.op_ptr->flags && FF_GDS)
                                 ^  ~~~~~~
sb/sb_bc_parser.cpp:620:27: note: use '&' for a bitwise operation
        if (cf->bc.op_ptr->flags && FF_GDS)
                                 ^~
                                 &
sb/sb_bc_parser.cpp:620:27: note: remove constant to silence this warning
        if (cf->bc.op_ptr->flags && FF_GDS)
                                ~^~~~~~~~~

Fixes: da977ad90747 ("r600/sb: start adding GDS support")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/sb/sb_bc_parser.cpp