st/mesa: add support for lowering fp64/int64 for nir drivers
authorDave Airlie <airlied@redhat.com>
Thu, 10 Jan 2019 06:24:57 +0000 (16:24 +1000)
committerJordan Justen <jordan.l.justen@intel.com>
Sat, 2 Mar 2019 22:33:44 +0000 (14:33 -0800)
commitcb4e3e3ef6e47811303ad3413a4ab2048696a6f6
treeac5fec4d31abae35e1b5605f24ffabe5e1b77178
parent7de056e1a9661273ba5055d094f17cf0b9ca92f3
st/mesa: add support for lowering fp64/int64 for nir drivers

This might enough for iris and possible r600 (when it gets NIR)

This appears to work for iris.

v2:
 * change cap return so DOUBLES == 2 means sw emu

v3:
 * Refactor using int64/doubles lowering options which were added
   into nir options
 * Remove DOUBLES == 2 added in v2

[jordan: Remove "2" value on PIPE_CAP_DOUBLES]
[jordan: Use lowering options added to nir options]
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/state_tracker/st_glsl_to_nir.cpp