[Mesa-dev] [PATCH 3/4] panfrost/midgard: Handle i2b constant

Alyssa Rosenzweig alyssa at rosenzweig.io
Tue Mar 26 14:50:41 UTC 2019


> Just an observation...
> 
> f2b(0x80000000) == false
> i2b(0x80000000) == true
> 
> I haven't read surrounding code, but if the handling of f2b and i2b is
> entirely identical, you'll run into trouble.

Both are being lowered to fne/ine instructions; this hunk is just to
force the second argument to "0" for each.

[Actually, wait, am I using fne for both? That *is* a bug.]


More information about the mesa-dev mailing list