r600/sb: Fix constant logical operand in assert.
authorVinson Lee <vlee@freedesktop.org>
Wed, 31 Oct 2018 22:35:23 +0000 (15:35 -0700)
committerVinson Lee <vlee@freedesktop.org>
Mon, 5 Nov 2018 05:09:55 +0000 (21:09 -0800)
Fixes: da977ad90747 ("r600/sb: start adding GDS support")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-By: Gert Wollny <gert.wollny@collabora.com>
src/gallium/drivers/r600/sb/sb_bc_builder.cpp

index 5681fdc44253578e32d568199347279a2f771566..b7d87eac9f42369ea6684f929d5a6edbf6c3b972 100644 (file)
@@ -567,7 +567,7 @@ int bc_builder::build_fetch_gds(fetch_node *n) {
        const fetch_op_info *fop = bc.op_ptr;
        unsigned gds_op = (ctx.fetch_opcode(bc.op) >> 8) & 0x3f;
        unsigned mem_op = 4;
-       assert(fop->flags && FF_GDS);
+       assert(fop->flags & FF_GDS);
 
        if (bc.op == FETCH_OP_TF_WRITE) {
                mem_op = 5;