From: Eric Engestrom Date: Sun, 29 Sep 2019 21:27:24 +0000 (+0100) Subject: etnaviv: fix bitmask typo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0efc253f024db93fd9f20734a5e6d6905c1315ae;p=mesa.git etnaviv: fix bitmask typo Fixes: d92689c46f0d2da05ae6 ("etnaviv: nir: add native integers (HALTI2+)") Signed-off-by: Eric Engestrom Reviewed-by: Jonathan Marek --- diff --git a/src/gallium/drivers/etnaviv/etnaviv_asm.h b/src/gallium/drivers/etnaviv/etnaviv_asm.h index b25f13f2a64..03e18a7b45a 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_asm.h +++ b/src/gallium/drivers/etnaviv/etnaviv_asm.h @@ -150,7 +150,7 @@ static inline struct etna_inst_src etna_immediate_float(float x) { uint32_t bits = fui(x); - assert((bits && 0xfff) == 0); /* 12 lsb cut off */ + assert((bits & 0xfff) == 0); /* 12 lsb cut off */ return etna_immediate_src(0, bits >> 12); }