nir: Move intel's half-float image store lowering to to nir_format.h.
authorEric Anholt <eric@anholt.net>
Tue, 11 Dec 2018 21:49:28 +0000 (13:49 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 13 Dec 2018 20:24:26 +0000 (12:24 -0800)
commit4407e688cdf65b1a25f09bcfdb577d5c175aeb9a
tree7979fc31f121d8eccfec099e5a4122ad52b3dfee
parent3a417a044e9ce3ab2ee6f1647e9be24cf9d310f5
nir: Move intel's half-float image store lowering to to nir_format.h.

I needed the same function for v3d.  This was originally in d3e046e76c06
("nir: Pull some of intel's image load/store format conversion to
nir_format.h") before we made am istake about simplifying the function.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_format_convert.h
src/intel/compiler/brw_nir_lower_image_load_store.c