etnaviv: fix bitmask typo
authorEric Engestrom <eric.engestrom@intel.com>
Sun, 29 Sep 2019 21:27:24 +0000 (22:27 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Mon, 30 Sep 2019 16:54:33 +0000 (17:54 +0100)
Fixes: d92689c46f0d2da05ae6 ("etnaviv: nir: add native integers (HALTI2+)")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
src/gallium/drivers/etnaviv/etnaviv_asm.h

index b25f13f2a64464aa53980141b14e6b28ec386cbb..03e18a7b45a1c4f882d7207d8b3c9156c00a80ba 100644 (file)
@@ -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);
 }