From ec5a8c8336593f071b948214ea4db534921ac2ba Mon Sep 17 00:00:00 2001 From: Erik Bourget Date: Sat, 21 Nov 2026 19:47:13 -0500 Subject: [PATCH] borealis: let a drirc profile cap the commands per kernel submission Splitting a long submission into smaller kernel ioctls lets the GPU start work from the first ioctl while the kernel validates later ioctls. Add hk_submit_batch_size, a drirc option that caps the commands in each kernel submission on any chip, and apply it in max_commands_per_submit(), which splitting, synchronization and resource tracking already share. 0 keeps the kernel and batching limits. Set it to 2 for Counter-Strike 2, where it was measured on the M5 Max. Signed-off-by: Erik Bourget --- src/asahi/vulkan/00-hk-defaults.conf | 6 ++++++ src/asahi/vulkan/hk_device.c | 4 ++++ src/asahi/vulkan/hk_device.h | 3 +++ src/asahi/vulkan/hk_drirc_gen.py | 6 +++++- src/asahi/vulkan/hk_queue.c | 3 ++- 5 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/asahi/vulkan/00-hk-defaults.conf b/src/asahi/vulkan/00-hk-defaults.conf index ac7d59a9dfed..609f069ee2dc 100644 --- a/src/asahi/vulkan/00-hk-defaults.conf +++ b/src/asahi/vulkan/00-hk-defaults.conf @@ -65,6 +65,12 @@ violation. -->