Skip to content

Commit 8334a34

Browse files
hoshinolinajannau
authored andcommitted
fixup! drm/asahi: Add the Asahi driver for Apple AGX GPUs
1 parent 515fe01 commit 8334a34

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,11 @@ pub(crate) mod raw {
8585
pub(crate) unk_2d4: u32,
8686
pub(crate) unk_2d8: u8,
8787
#[ver(V >= V13_0B4)]
88-
pub(crate) unk_ts: U64,
88+
pub(crate) context_store_req: U64,
8989
#[ver(V >= V13_0B4)]
90-
pub(crate) unk_2e1: Array<0x1c, u8>,
90+
pub(crate) context_store_compl: U64,
91+
#[ver(V >= V13_0B4)]
92+
pub(crate) unk_2e9: Array<0x14, u8>,
9193
#[ver(V >= V13_0B4)]
9294
pub(crate) unk_flag: U32,
9395
#[ver(V >= V13_0B4)]

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl super::QueueInner::ver {
191191
work_queue: ev_comp.info_ptr,
192192
unk_24: U64(0),
193193
#[ver(V >= V13_0B4)]
194-
unk_ts: inner_weak_ptr!(ptr, unk_ts),
194+
unk_ts: inner_weak_ptr!(ptr, context_store_req),
195195
uuid,
196196
unk_30_padding: 0,
197197
})?;
@@ -215,7 +215,7 @@ impl super::QueueInner::ver {
215215
work_queue: ev_comp.info_ptr,
216216
unk_24: U64(0),
217217
#[ver(V >= V13_0B4)]
218-
unk_ts: inner_weak_ptr!(ptr, unk_ts),
218+
unk_ts: inner_weak_ptr!(ptr, context_store_req),
219219
uuid,
220220
unk_30_padding: 0,
221221
})?;
@@ -378,9 +378,11 @@ impl super::QueueInner::ver {
378378
unk_2d4: 0,
379379
unk_2d8: 0,
380380
#[ver(V >= V13_0B4)]
381-
unk_ts: U64(0),
381+
context_store_req: U64(0),
382382
#[ver(V >= V13_0B4)]
383-
unk_2e1: Default::default(),
383+
context_store_compl: U64(0),
384+
#[ver(V >= V13_0B4)]
385+
unk_2e9: Default::default(),
384386
#[ver(V >= V13_0B4)]
385387
unk_flag: U32(0),
386388
#[ver(V >= V13_0B4)]

0 commit comments

Comments
 (0)