On Tue, Jan 12, 2016 at 3:52 PM, Matt Turner <matts...@gmail.com> wrote:
> On Tue, Jan 12, 2016 at 3:35 PM, Jason Ekstrand <ja...@jlekstrand.net> > wrote: > > This opcode simply takes a 32-bit floating-point value and reduces its > > effective precision to 16 bits. > > --- > > What's it supposed to do for values not representable in half-precision? > If they're in-range, round. If they're out-of-range, the appropriate infinity. > > I think we need some more information about this opcode's purpose to > be able to review. > The purpose is very specifically to implement the OpQuantizeF16 opcode in spirv: https://www.khronos.org/registry/spir-v/specs/1.0/SPIRV.html#OpQuantizeToF16 Sorry, I meant to reply immediately with the link, but I forgot. Maybe I should have even put that in the commit message. --Jason
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev