nir: Add load_output_u8_as_fp16_pan intrinsic
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 7 Nov 2019 02:47:23 +0000 (21:47 -0500)
committerTomeu Vizoso <tomeu.vizoso@collabora.co.uk>
Mon, 11 Nov 2019 15:23:44 +0000 (15:23 +0000)
commit03f73c7fc6666c904ec0ad07c6aaaf175bc41291
tree236b08b9cf310b93479aa33b1bb4a9cd4a6fc996
parentee5321f2392f8d98a552750986fa476ab8c13eb3
nir: Add load_output_u8_as_fp16_pan intrinsic

This is a single opcode, at least on newer Midgard chips. It's easier to
have this represented in NIR rather than trying to optimize out the
conversions, so let's add the intrinsic.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
src/compiler/nir/nir_intrinsics.py