[Mesa-dev] [PATCH] spirv: handle SpvOpUConvert in proper place.
Jason Ekstrand
jason at jlekstrand.net
Wed Feb 15 14:44:22 UTC 2017
Oops... R-b
On Feb 15, 2017 12:27 AM, "Dave Airlie" <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
>
> This was falling into the quantizetof16 path.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
> src/compiler/spirv/vtn_alu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/compiler/spirv/vtn_alu.c b/src/compiler/spirv/vtn_alu.c
> index 55f7f2e..0738fe0 100644
> --- a/src/compiler/spirv/vtn_alu.c
> +++ b/src/compiler/spirv/vtn_alu.c
> @@ -286,8 +286,8 @@ vtn_nir_alu_op_for_spirv_opcode(SpvOp opcode, bool
> *swap,
>
> /* Conversions: */
> case SpvOpBitcast: return nir_op_imov;
> - case SpvOpUConvert:
> case SpvOpQuantizeToF16: return nir_op_fquantize2f16;
> + case SpvOpUConvert:
> case SpvOpConvertFToU:
> case SpvOpConvertFToS:
> case SpvOpConvertSToF:
> --
> 2.9.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170215/304a8dfa/attachment.html>
More information about the mesa-dev
mailing list