From 0f47112a2d712981cfa1ce7824d713da59377514 Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Wed, 8 Nov 2023 18:16:48 +0900 Subject: [PATCH] drm/asahi: Identify & add render VS spills flag Signed-off-by: Asahi Lina --- drivers/gpu/drm/asahi/fw/vertex.rs | 2 +- drivers/gpu/drm/asahi/queue/render.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/asahi/fw/vertex.rs b/drivers/gpu/drm/asahi/fw/vertex.rs index a6318898817abf..12833488bcbeb6 100644 --- a/drivers/gpu/drm/asahi/fw/vertex.rs +++ b/drivers/gpu/drm/asahi/fw/vertex.rs @@ -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, diff --git a/drivers/gpu/drm/asahi/queue/render.rs b/drivers/gpu/drm/asahi/queue/render.rs index 583ea4fa1b8cf4..9458cce7377109 100644 --- a/drivers/gpu/drm/asahi/queue/render.rs +++ b/drivers/gpu/drm/asahi/queue/render.rs @@ -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 @@ -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,