intel/fs: Use F32TO16/F16TO32 helpers in fquantize16 handling
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 8 Mar 2023 04:51:19 +0000 (20:51 -0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 9 Mar 2023 23:26:17 +0000 (23:26 +0000)
commitf5e5705c91562dd8e36c82de928944d1e202e995
tree40aa526bd317ca7b61596d14e147537952447b0f
parent44c6ccb1972597fda1eb89b86f4f1facc63f14bb
intel/fs: Use F32TO16/F16TO32 helpers in fquantize16 handling

I originally thought that we were intentionally emitting the legacy
opcodes here to make them opaque to the optimizer, so that it wouldn't
eliminate the explicit type conversions, as they're actually required
to do the quantization.  But...we don't actually optimize those away
currently anyway.  So...go ahead and use the helpers for consistency.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21783>
src/intel/compiler/brw_fs_nir.cpp