nak/sm50: Various encoding fixes

Most of this is code clean-ups and unifications.  A few things were
missing proper legalization.  Some of it was just plain wrong.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30281>
This commit is contained in:
Faith Ekstrand 2024-07-11 18:27:07 -05:00 committed by Marge Bot
parent 549fada593
commit 69be07b191
3 changed files with 331 additions and 308 deletions

View file

@ -3314,7 +3314,7 @@ impl_display_for_op!(OpISetP);
pub struct OpLop2 {
pub dst: Dst,
#[src_type(ALU)]
#[src_type(B32)]
pub srcs: [Src; 2],
pub op: LogicOp2,

View file

@ -169,17 +169,6 @@ pub trait LegalizeBuildHelpers: SSABuilder {
src.src_ref = val.into();
}
fn copy_alu_src_if_cbuf(
&mut self,
src: &mut Src,
reg_file: RegFile,
src_type: SrcType,
) {
if matches!(src.src_ref, SrcRef::CBuf(_)) {
self.copy_alu_src(src, reg_file, src_type);
}
}
fn copy_alu_src_if_not_reg(
&mut self,
src: &mut Src,

File diff suppressed because it is too large Load diff