<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 12, 2016 at 3:52 PM, Matt Turner <span dir="ltr"><<a href="mailto:mattst88@gmail.com" target="_blank">mattst88@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">On Tue, Jan 12, 2016 at 3:35 PM, Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>> wrote:<br>
> This opcode simply takes a 32-bit floating-point value and reduces its<br>
> effective precision to 16 bits.<br>
> ---<br>
<br>
</span>What's it supposed to do for values not representable in half-precision?<br></blockquote><div><br></div><div>If they're in-range, round. If they're out-of-range, the appropriate infinity.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I think we need some more information about this opcode's purpose to<br>
be able to review.<br>
</blockquote></div><br></div><div class="gmail_extra">The purpose is very specifically to implement the OpQuantizeF16 opcode in spirv: <a href="https://www.khronos.org/registry/spir-v/specs/1.0/SPIRV.html#OpQuantizeToF16">https://www.khronos.org/registry/spir-v/specs/1.0/SPIRV.html#OpQuantizeToF16</a><br><br></div><div class="gmail_extra">Sorry, I meant to reply immediately with the link, but I forgot. Maybe I should have even put that in the commit message.<br></div><div class="gmail_extra">--Jason<br></div></div>