nir: Add a fdot instruction that replicates the result to a vec4
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 10 Sep 2015 17:51:46 +0000 (10:51 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 15 Sep 2015 19:38:48 +0000 (12:38 -0700)
commit47739c7df430664c3a998163a1e8a4a5e1901691
treed6fa66bfb82d9e2e73b7ad755a7abae1eb84cadd
parent2458ea95c5676807a064f24ec720f12506975402
nir: Add a fdot instruction that replicates the result to a vec4

Fortunately, nir_constant_expr already auto-splats if "dst" never shows up
in the constant expression field so we don't need to do anything there.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
src/glsl/nir/nir.h
src/glsl/nir/nir_opcodes.py
src/glsl/nir/nir_opt_algebraic.py