OSDN Git Service

intel/vec4: Fix nir_op_b2[fi] with 64-bit result
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 11 Oct 2018 03:04:17 +0000 (22:04 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 11 Oct 2018 20:21:19 +0000 (15:21 -0500)
commit0e0dc596a2c008c32def103e175fcd5b7116f38f
tree770293c84ec3d3617b5690aede52624efb0408d7
parent497675c21ee34dfe1e8f9dfe62f6a3011f8062e5
intel/vec4: Fix nir_op_b2[fi] with 64-bit result

This is valid NIR but you can't actually hit this case today.  GLSL IR
doesn't have a bool to double opcode; it does f2d(b2f(x)).  In SPIR-V we
don't have any to/from bool conversion opcodes at all.  However, the
next commit will make us start generating it so we should be ready.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/intel/compiler/brw_vec4_nir.cpp