diff options
author | Ian Romanick <[email protected]> | 2017-11-13 13:00:53 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2018-03-29 14:09:28 -0700 |
commit | 22fbb5c5949b1590ef04b6432dd7f3a93a37c2ed (patch) | |
tree | c43dcd5e0d83802f39221369da90d1eed745b808 /src/gallium/drivers/etnaviv/etnaviv_blt.c | |
parent | d76c204d0564701b4b8b6a2bdda50e2939683e66 (diff) |
util: Add and use util_is_power_of_two_nonzero
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_blt.c')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_blt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_blt.c b/src/gallium/drivers/etnaviv/etnaviv_blt.c index c30c11ab61e..52731a9c770 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_blt.c +++ b/src/gallium/drivers/etnaviv/etnaviv_blt.c @@ -178,7 +178,7 @@ emit_blt_copyimage(struct etna_cmd_stream *stream, const struct blt_imgcopy_op * static void emit_blt_inplace(struct etna_cmd_stream *stream, const struct blt_inplace_op *op) { - assert(op->bpp > 0 && util_is_power_of_two_or_zero(op->bpp)); + assert(op->bpp > 0 && util_is_power_of_two_nonzero(op->bpp)); etna_cmd_stream_reserve(stream, 64*2); /* Never allow BLT sequences to be broken up */ etna_set_state(stream, VIVS_BLT_ENABLE, 0x00000001); etna_set_state(stream, VIVS_BLT_CONFIG, |