nir/glsl: make evaluate_rvalue() return a nir_ssa_def *
authorConnor Abbott <cwabbott0@gmail.com>
Sat, 31 Oct 2015 03:32:50 +0000 (23:32 -0400)
committerConnor Abbott <cwabbott0@gmail.com>
Tue, 10 Nov 2015 18:55:14 +0000 (13:55 -0500)
commit30fe8eaa8e65e656d2bc95f499791eebea7d7dc9
treeb1e3a771a3e4e179b4290f03dc4e44e3eacc2c62
parent6f4216232921370e513e56d38cf894c94ae63fa6
nir/glsl: make evaluate_rvalue() return a nir_ssa_def *

A long time ago, before NIR was even merged to master, glsl_to_nir used
registers and these sources were actually register sources. But nowadays
everything in glsl_to_nir is an SSA value, so stop pretending that by
evaluating an rvalue we can get an arbitrary nir_src. Most importantly,
we need this since the builder takes nir_ssa_def * sources directly.

Signed-off-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/glsl_to_nir.cpp