Jason Ekstrand
ea4f200864
nir/format_convert: Add support for unpacking signed integers
...
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2018-08-29 14:04:02 -05:00
Roland Scheidegger
b3474645d4
nir: fix msvc build
...
Empty initializer braces aren't valid c (it's a gnu extension, and
it's valid in c++).
Hopefully fixes appveyor / msvc build...
Fixes a3150c1d06
2018-07-16 20:07:53 +02:00
Jason Ekstrand
047e68389f
nir/format_convert: Add code for bitcasting vectors
...
This is a fairly direct port from blorp. The only real change is that
the nir_format_convert version doesn't assume that everything is a vec4.
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2018-05-09 11:16:33 -07:00
Jason Ekstrand
9981709d8f
nir/format_convert: Add a function to pack RGB9_E5 formats
...
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2018-05-09 11:16:33 -07:00
Jason Ekstrand
4e337b42f9
nir/format_convert: Add pack/unpack for R11F_G11F_B10F
...
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2018-05-09 11:16:33 -07:00
Jason Ekstrand
98156b0019
nir/format_convert: Add linear <-> sRGB helpers
...
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2018-05-09 11:16:33 -07:00
Jason Ekstrand
2fdd966e3d
nir: Add the start of a format conversion helper header
...
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
2018-05-09 11:16:33 -07:00