Skip to content

Commit 73ff2c6

Browse files
committed
drm/asahi: Identify and implement helper config register
Signed-off-by: Asahi Lina <[email protected]>
1 parent 7cbd770 commit 73ff2c6

5 files changed

Lines changed: 7 additions & 5 deletions

File tree

drivers/gpu/drm/asahi/fw/compute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub(crate) mod raw {
2424
pub(crate) helper_program: u32,
2525
pub(crate) unk_44: u32,
2626
pub(crate) helper_arg: U64,
27-
pub(crate) helper_unk: u32,
27+
pub(crate) helper_cfg: u32,
2828
pub(crate) unk_54: u32,
2929
pub(crate) unk_58: u32,
3030
pub(crate) unk_5c: u32,

drivers/gpu/drm/asahi/fw/fragment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ pub(crate) mod raw {
141141
pub(crate) isp_bgobjvals: u32,
142142
pub(crate) unk_38: u32,
143143
pub(crate) unk_3c: u32,
144-
pub(crate) unk_40: u32,
144+
pub(crate) helper_cfg: u32,
145145
pub(crate) __pad: Pad<0xac>,
146146
}
147147

drivers/gpu/drm/asahi/fw/vertex.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ pub(crate) mod raw {
2525
pub(crate) tpc_stride: u32,
2626
pub(crate) unk_24: u32,
2727
pub(crate) unk_28: u32,
28-
pub(crate) __pad: Pad<0x74>,
28+
pub(crate) helper_cfg: u32,
29+
pub(crate) __pad: Pad<0x70>,
2930
}
3031

3132
#[versions(AGX)]

drivers/gpu/drm/asahi/queue/compute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ impl super::Queue::ver {
279279
helper_program: cmdbuf.helper_program, // Internal program addr | 1
280280
unk_44: 0,
281281
helper_arg: U64(cmdbuf.helper_arg), // Only if internal program used
282-
helper_unk: cmdbuf.helper_unk, // 0x40 if internal program used
282+
helper_cfg: cmdbuf.helper_cfg, // 0x40 if internal program used
283283
unk_54: 0,
284284
unk_58: 1,
285285
unk_5c: 0,

drivers/gpu/drm/asahi/queue/render.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ impl super::Queue::ver {
200200
} else {
201201
0x8000
202202
},
203+
helper_cfg: cmdbuf.vertex_helper_cfg,
203204
__pad: Default::default(),
204205
},
205206
})
@@ -862,7 +863,7 @@ impl super::Queue::ver {
862863
isp_bgobjvals: unks.load_bgobjvals as u32,
863864
unk_38: unks.frg_unk_38 as u32,
864865
unk_3c: unks.frg_unk_3c as u32,
865-
unk_40: unks.frg_unk_40 as u32,
866+
helper_cfg: cmdbuf.fragment_helper_cfg,
866867
__pad: Default::default(),
867868
}),
868869
#[ver(G >= G14X)]

0 commit comments

Comments
 (0)