Skip to content

Commit

Permalink
drm/asahi: Identify & add render VS spills flag
Browse files Browse the repository at this point in the history
Signed-off-by: Asahi Lina <lina@asahilina.net>
  • Loading branch information
asahilina committed Nov 8, 2023
1 parent cefdfd2 commit 0f47112
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/asahi/fw/vertex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ pub(crate) mod raw {
pub(crate) unk_560: u32,
pub(crate) sync_grow: u32,
pub(crate) unk_568: u32,
pub(crate) unk_56c: u32,
pub(crate) spills: u32,
pub(crate) meta: job::raw::JobMeta,
pub(crate) unk_after_meta: u32,
pub(crate) unk_buf_0: U64,
Expand Down
5 changes: 4 additions & 1 deletion drivers/gpu/drm/asahi/queue/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ impl super::Queue::ver {
if cmdbuf.flags
& !(uapi::ASAHI_RENDER_NO_CLEAR_PIPELINE_TEXTURES
| uapi::ASAHI_RENDER_SET_WHEN_RELOADING_Z_OR_S
| uapi::ASAHI_RENDER_VERTEX_SPILLS
| uapi::ASAHI_RENDER_PROCESS_EMPTY_TILES
| uapi::ASAHI_RENDER_NO_VERTEX_CLUSTERING
| uapi::ASAHI_RENDER_MSAA_ZS) as u64
Expand Down Expand Up @@ -1491,7 +1492,9 @@ impl super::Queue::ver {
unk_560: 0,
sync_grow: 0,
unk_568: 0,
unk_56c: 0,
spills: (cmdbuf.flags
& uapi::ASAHI_RENDER_VERTEX_SPILLS as u64
!= 0) as u32,
meta <- try_init!(fw::job::raw::JobMeta {
unk_0: 0,
unk_2: 0,
Expand Down

0 comments on commit 0f47112

Please sign in to comment.