Skip to content

Commit

Permalink
drm/asahi: render: Fix layered rendering on G14X
Browse files Browse the repository at this point in the history
We were missing one register and one bit.

Signed-off-by: Asahi Lina <[email protected]>
  • Loading branch information
asahilina committed Nov 10, 2023
1 parent 6b61c12 commit 9bf7175
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpu/drm/asahi/queue/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ impl super::Queue::ver {
| (((tile_info.tiles_x - 1) as u64) << 44)
| (((tile_info.tiles_y - 1) as u64) << 53)
| (if unk1 { 0 } else { 0x20_00000000 })
| (if cmdbuf.layers > 1 { 0x1_00000000 } else { 0 })
| ((utile_config as u64 & 0xf000) << 28);

let frag_result = result_writer
Expand Down Expand Up @@ -1443,7 +1444,7 @@ impl super::Queue::ver {
r.add(0x10171, tile_info.params.unk_24.into());
r.add(0x10169, tile_info.params.unk_28.into()); // TA_RENDER_TARGET_MAX
r.add(0x12099, unks.vtx_unk_118);
r.add(0x1c9e8, 0);
r.add(0x1c9e8, (tile_info.params.unk_28 & 0x4fff).into());
/*
r.add(0x10209, 0x100); // Some kind of counter?? Does this matter?
r.add(0x1c9f0, 0x100); // Some kind of counter?? Does this matter?
Expand Down

0 comments on commit 9bf7175

Please sign in to comment.