nir/constant_folding: Use nir_src_as_bool for discard_if
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 22 Oct 2018 20:53:14 +0000 (15:53 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 26 Oct 2018 16:45:29 +0000 (11:45 -0500)
commit249e32ab17bdbe1f26449079b0eafd3391b52d0f
tree64bdf875c8db8c223b12c6c9de040968974b6054
parent6de1869e86dc54f531f6c5099aa5125acb06ee0f
nir/constant_folding: Use nir_src_as_bool for discard_if

Missed one while converting to the nir_src_as_* helpers.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/nir/nir_opt_constant_folding.c