summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2018-10-31 15:35:23 -0700
committerEmil Velikov <[email protected]>2018-11-08 16:05:06 +0000
commit6463af186c803eb96cd70df521d6915300ea497c (patch)
treee6711bfc1aa8ca722fd67f29bcec8b30d7277cf1 /src/gallium/drivers
parent45fe51a0eefd1b4f7bb70869da6eb3286788a659 (diff)
r600/sb: Fix constant logical operand in assert.
Fixes: da977ad90747 ("r600/sb: start adding GDS support") Signed-off-by: Vinson Lee <[email protected]> Reviewed-By: Gert Wollny <[email protected]> (cherry picked from commit 64a9ed8848ed5c2c909b59e0e4b600b2b01bba28)
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r600/sb/sb_bc_builder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/sb/sb_bc_builder.cpp b/src/gallium/drivers/r600/sb/sb_bc_builder.cpp
index 5681fdc4425..b7d87eac9f4 100644
--- a/src/gallium/drivers/r600/sb/sb_bc_builder.cpp
+++ b/src/gallium/drivers/r600/sb/sb_bc_builder.cpp
@@ -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;