nak: Fix nir_op_f2f64

We were only allocating one register

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26743>
This commit is contained in:
Faith Ekstrand 2023-12-07 23:28:06 -06:00 committed by Marge Bot
parent 7ced1d3648
commit 26d649f120

View file

@ -577,7 +577,7 @@ impl<'a> ShaderFromNir<'a> {
let src_type = FloatType::from_bits(src_bits.into());
let dst_type = FloatType::from_bits(dst_bits.into());
let dst = b.alloc_ssa(RegFile::GPR, 1);
let dst = b.alloc_ssa(RegFile::GPR, dst_bits.div_ceil(32));
b.push_op(OpF2F {
dst: dst.into(),
src: srcs[0],