[Mesa-dev] [Bug 102032] nir_op_imod is incorrectly implemented as LLVM's srem

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jan 25 23:19:36 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=102032

--- Comment #1 from Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl> ---
I went looking to why there were no good CTS tests for this and found this in
the vulkan spec:

For the OpSRem and OpSMod instructions, if either operand is negative the
result is undefined.

Note
While the OpSRem and OpSMod instructions are supported by the Vulkan
environment, they require non-negative values and thus do not enable additional
functionality beyond what OpUMod provides.


While I'm open to fixing this, you may want to rethink what you are doing.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20180125/640418fe/attachment.html>


More information about the mesa-dev mailing list