38e8d7afe3
Read directly from the instruction getting spilt. Otherwise a fill will be inserted before the spill writing the value, so the instruction reading the spilt value gets garbage data. Use the bundle_id to check if the instructions are in the same bundle. Insert a move instruction, as the spill needs the value in a LD/ST register such as AL0, while the ALU instruction reading the value needs it in a work register such as R0. Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4857 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11212>