Skip to content

Commit 0f47112

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

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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
@@ -1491,7 +1492,9 @@ impl super::Queue::ver {
14911492
unk_560: 0,
14921493
sync_grow: 0,
14931494
unk_568: 0,
1494-
unk_56c: 0,
1495+
spills: (cmdbuf.flags
1496+
& uapi::ASAHI_RENDER_VERTEX_SPILLS as u64
1497+
!= 0) as u32,
14951498
meta <- try_init!(fw::job::raw::JobMeta {
14961499
unk_0: 0,
14971500
unk_2: 0,

0 commit comments

Comments
 (0)