diff options
author | Eric Anholt <[email protected]> | 2019-05-09 17:32:25 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-05-13 15:37:01 -0700 |
commit | 40dd28acc389722ba5b7d6592156446008906a4e (patch) | |
tree | 0e706b44204d7ad8966cae75723c0316c602f925 /src/gallium/drivers/freedreno/a3xx | |
parent | 06168d3f6ab2564664927d823e632939613b27eb (diff) |
freedreno: Silence compiler warnings about "*" in boolean context.
It sure looks like we just want both of them to be nonzero, and && is
probably going to be cheaper than * anyway.
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_gmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c b/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c index 7de0a92cdc1..5c3079e2dcb 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_gmem.c @@ -1016,7 +1016,7 @@ fd3_emit_tile_renderprep(struct fd_batch *batch, struct fd_tile *tile) if (use_hw_binning(batch)) { struct fd_vsc_pipe *pipe = &ctx->vsc_pipe[tile->p]; - assert(pipe->w * pipe->h); + assert(pipe->w && pipe->h); fd_event_write(batch, ring, HLSQ_FLUSH); fd_wfi(batch, ring); |