Skip to content

Commit

Permalink
fixup! drm/asahi: Identify and implement helper config register
Browse files Browse the repository at this point in the history
  • Loading branch information
asahilina committed Jan 17, 2024
1 parent 46e6bb7 commit 499c582
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/asahi/queue/compute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ impl super::Queue::ver {
r.add(0x10071, 0x1100000000); // USC_EXEC_BASE_CP
r.add(0x11841, cmdbuf.helper_program.into());
r.add(0x11849, cmdbuf.helper_arg);
r.add(0x11f81, cmdbuf.helper_unk.into());
r.add(0x11f81, cmdbuf.helper_cfg.into());
r.add(0x1a440, 0x24201);
r.add(0x12091, cmdbuf.iogpu_unk_40.into());
/*
Expand Down
4 changes: 2 additions & 2 deletions drivers/gpu/drm/asahi/queue/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ impl super::Queue::ver {
r.add(0x16451, 0x0); // ISP_RENDER_ORIGIN
r.add(0x11821, cmdbuf.fragment_helper_program.into());
r.add(0x11829, cmdbuf.fragment_helper_arg);
r.add(0x11f79, 0);
r.add(0x11f79, cmdbuf.fragment_helper_cfg.into());
r.add(0x15359, 0);
r.add(0x10069, 0x11_00000000); // USC_EXEC_BASE_ISP
r.add(0x16020, 0);
Expand Down Expand Up @@ -1436,7 +1436,7 @@ impl super::Queue::ver {
r.add(0x10061, 0x11_00000000); // USC_EXEC_BASE_TA
r.add(0x11801, cmdbuf.vertex_helper_program.into());
r.add(0x11809, cmdbuf.vertex_helper_arg);
r.add(0x11f71, 0);
r.add(0x11f71, cmdbuf.vertex_helper_cfg.into());
r.add(0x1c0b1, tile_info.params.rgn_size.into()); // TE_PSG
r.add(0x1c850, tile_info.params.rgn_size.into());
r.add(0x10131, tile_info.params.unk_4.into());
Expand Down

0 comments on commit 499c582

Please sign in to comment.