aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-09-29 22:27:24 +0100
committerEric Engestrom <[email protected]>2019-09-30 17:54:33 +0100
commit0efc253f024db93fd9f20734a5e6d6905c1315ae (patch)
tree4d1651c19cdd2e8d68d25165548771dc93cbfeb6
parent855dc17fcfc3aaf3a1324b54c7fb4e0c246b4987 (diff)
etnaviv: fix bitmask typo
Fixes: d92689c46f0d2da05ae6 ("etnaviv: nir: add native integers (HALTI2+)") Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Jonathan Marek <[email protected]>
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_asm.h2
1 files changed, 1 insertions, 1 deletions
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);
}