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:
parent
06168d3f6a
commit
40dd28acc3
|
@ -1016,7 +1016,7 @@ fd3_emit_tile_renderprep(struct fd_batch *batch, struct fd_tile *tile)
|
||||||
if (use_hw_binning(batch)) {
|
if (use_hw_binning(batch)) {
|
||||||
struct fd_vsc_pipe *pipe = &ctx->vsc_pipe[tile->p];
|
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_event_write(batch, ring, HLSQ_FLUSH);
|
||||||
fd_wfi(batch, ring);
|
fd_wfi(batch, ring);
|
||||||
|
|
|
@ -770,7 +770,7 @@ fd4_emit_tile_renderprep(struct fd_batch *batch, struct fd_tile *tile)
|
||||||
if (use_hw_binning(batch)) {
|
if (use_hw_binning(batch)) {
|
||||||
struct fd_vsc_pipe *pipe = &ctx->vsc_pipe[tile->p];
|
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_event_write(batch, ring, HLSQ_FLUSH);
|
||||||
fd_wfi(batch, ring);
|
fd_wfi(batch, ring);
|
||||||
|
|
Loading…
Reference in New Issue