nir: port fp16 casting code from dxil
authorDave Airlie <airlied@redhat.com>
Tue, 29 Dec 2020 02:43:11 +0000 (12:43 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 22 Mar 2021 02:16:59 +0000 (12:16 +1000)
commit01dfd65a2d407dd95ac472e7e80e736bc7a8fc57
tree5af864467eda73cc81c894bdc147470adfe3e8d1
parent224069cefdd162efae87f0f515d6203f56e9cd53
nir: port fp16 casting code from dxil

This moves the dxil pass to common code and makes dxil
use the new code.

Acked-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9643>
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_fp16_conv.c [new file with mode: 0644]
src/microsoft/clc/clc_compiler.c
src/microsoft/compiler/dxil_nir.c