Skip to content

Commit 0ae8bbb

Browse files
committed
drm/asahi: Identify & add render VS spills flag
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 90014da commit 0ae8bbb

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

drivers/gpu/drm/asahi/fw/vertex.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) unk_560: u32,
142142
pub(crate) sync_grow: u32,
143143
pub(crate) unk_568: u32,
144-
pub(crate) unk_56c: u32,
144+
pub(crate) spills: u32,
145145
pub(crate) meta: job::raw::JobMeta,
146146
pub(crate) unk_after_meta: u32,
147147
pub(crate) unk_buf_0: U64,

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ impl super::Queue::ver {
238238
if cmdbuf.flags
239239
& !(uapi::ASAHI_RENDER_NO_CLEAR_PIPELINE_TEXTURES
240240
| uapi::ASAHI_RENDER_SET_WHEN_RELOADING_Z_OR_S
241+
| uapi::ASAHI_RENDER_VERTEX_SPILLS
241242
| uapi::ASAHI_RENDER_PROCESS_EMPTY_TILES
242243
| uapi::ASAHI_RENDER_NO_VERTEX_CLUSTERING
243244
| uapi::ASAHI_RENDER_MSAA_ZS) as u64
@@ -1488,7 +1489,9 @@ impl super::Queue::ver {
14881489
unk_560: 0,
14891490
sync_grow: 0,
14901491
unk_568: 0,
1491-
unk_56c: 0,
1492+
spills: (cmdbuf.flags
1493+
& uapi::ASAHI_RENDER_VERTEX_SPILLS as u64
1494+
!= 0) as u32,
14921495
meta <- try_init!(fw::job::raw::JobMeta {
14931496
unk_0: 0,
14941497
unk_2: 0,

0 commit comments

Comments
 (0)