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 <hoegsberg@google.com>
This commit is contained in:
Eric Anholt 2019-05-09 17:32:25 -07:00
parent 06168d3f6a
commit 40dd28acc3
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -770,7 +770,7 @@ fd4_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);