[PR #1264] vulkan: classify command batches in one pass #1295

Open
opened 2026-11-26 20:20:46 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1264
Author: @Kadamitas
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: perf/classify-queue-batch-once


📝 Commits (1)

  • e13477c vulkan: classify queue command batches in one pass

📊 Changes

1 file changed (+12 additions, -15 deletions)

View changed files

📝 runtime/src/vulkan_backend.h (+12 -15)

📄 Description

Claimed in the coordination issue as: queue command classification

What and why

Calculate the shader-use flag, predication capture count and queue-specific clear rejection during the existing pre-lock scan. Classification remains linear and avoids later command traversals inside the queue setup.

Tested

  • All 1,581 CPU behavior comparisons matched the existing classifiers.
  • The native Vulkan queue test passed on SwiftShader on Windows 11 x64.
  • For 4,096 synthetic commands, median classification time was 3.31 to 3.08 microseconds on the direct-queue path and 4.87 to 3.76 microseconds on the compute-queue path.

GPUs tested: SwiftShader software Vulkan on Windows 11 x64.

AI-assisted: yes

  • One topic with synthetic inputs and no game data.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/1264 **Author:** [@Kadamitas](https://github.com/Kadamitas) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `perf/classify-queue-batch-once` --- ### 📝 Commits (1) - [`e13477c`](https://github.com/ubiquitarianism/leonida/commit/e13477cb4e4c2906b715dccd1e4bba9c2a936eb8) vulkan: classify queue command batches in one pass ### 📊 Changes **1 file changed** (+12 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `runtime/src/vulkan_backend.h` (+12 -15) </details> ### 📄 Description Claimed in the coordination issue as: [queue command classification](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7144407846) ### What and why Calculate the shader-use flag, predication capture count and queue-specific clear rejection during the existing pre-lock scan. Classification remains linear and avoids later command traversals inside the queue setup. ### Tested - All 1,581 CPU behavior comparisons matched the existing classifiers. - The native Vulkan queue test passed on SwiftShader on Windows 11 x64. - For 4,096 synthetic commands, median classification time was 3.31 to 3.08 microseconds on the direct-queue path and 4.87 to 3.76 microseconds on the compute-queue path. GPUs tested: SwiftShader software Vulkan on Windows 11 x64. AI-assisted: yes - [x] One topic with synthetic inputs and no game data. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1295
No description provided.