[Mesa-dev] [PATCH 4/4] i965: Use ~0 to represent true on all generations.

Matt Turner mattst88 at gmail.com
Thu Dec 4 17:58:03 PST 2014


On Thu, Dec 4, 2014 at 5:48 PM, Kenneth Graunke <kenneth at whitecape.org> wrote:
> Some comments would be nice:
>
> /**
>  * Resolve the result of a Gen4-5 CMP instruction to a proper boolean.
>  *
>  * CMP on Gen4-5 only sets the LSB of the result; the rest are undefined.
>  * If we need a proper boolean value, we have to fix it up to be 0 or ~0.
>  */

Sure. I'll add it to the fs_visitor's function as well.


More information about the mesa-dev mailing list