nak: sm50: fix ineg legalization

There is nothing to be done, as we lower this op unconditionally.

We need to add an arm in the match to not panic, though.

Fixes a panic in
dEQP-VK.binding_model.shader_access.primary_cmd_buf.sampler_immutable.vertex_fragment.multiple_contiguous_descriptors.2d

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26587>
This commit is contained in:
Daniel Almeida 2023-12-14 13:37:58 -06:00 committed by Marge Bot
parent 73a1acef18
commit 0ac6a81ab5

View file

@ -324,6 +324,7 @@ fn legalize_sm50_instr(
}
Op::Ldc(_) => (), // Nothing to do
Op::Copy(_) => (), // Nothing to do
Op::INeg(_) => (), /* we unconditionally lower this */
_ => {
let src_types = instr.src_types();
for (i, src) in instr.srcs_mut().iter_mut().enumerate() {