mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1843
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1830
Author: @potatoe0100
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:carry/old-10023📝 Commits (3)
2ca4262Implement Vulkan color MIN and MAX resolves6a208adtest: d3d12_vulkan_device expects a colour MAX resolve to be accepted and keeps a non-resolve mode refused158ed8cd3d12: ResolveSubresource averages a typeless resource in the format it names (sRGB in linear light)📊 Changes
13 files changed (+911 additions, -29 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+17 -3)📝
runtime/shims/d3d12_com.cpp(+11 -1)📝
runtime/shims/d3d12_com.h(+5 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+28 -0)➕
runtime/src/color_resolve.frag(+31 -0)➕
runtime/src/color_resolve.vert(+6 -0)➕
runtime/src/color_resolve_spv.h(+199 -0)📝
runtime/src/command_list.h(+4 -1)📝
runtime/src/vulkan_backend.h(+20 -0)➕
runtime/src/vulkan_color_resolve.h(+278 -0)📝
runtime/src/vulkan_replay.h(+177 -19)📝
runtime/test/d3d12_msaa_draw_test.cpp(+130 -5)📝
runtime/test/d3d12_vulkan_device_test.cpp(+5 -0)📄 Description
Claimed in the coordination issue as: OLD-10023 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162810126)
What and why
Carries forward
old-pr/10023(draft #292) by @tedin7, rebased onmain0d80bc5dfwith the author's three commits:MINandMAXresolves implemented with a small fragment pass (vulkan_color_resolve.h, hand-written GLSL incolor_resolve.vert/.frag);d3d12_vulkan_device_testexpects a colourMAXresolve to be accepted and still refuses a non-resolve mode;ResolveSubresourceaverages a typeless resource in the format it names, so a typeless RGBA8 resolved asR8G8B8A8_UNORM_SRGBaverages in linear light.Rebase notes (
runtime/src/vulkan_backend.h,runtime/src/vulkan_replay.h):main's quad-index helper next to the new colour-resolve helper, andindirect_clampnext tocolor_resolvesin the submission slot.mainnow askshas_helper_dispatch()where the branch listed the helper kinds inline;p.color_extremumis added there, so a colour MIN/MAX resolve still splits the statistics segments as the author's version did.main'sunsupported_at(__LINE__).Supersedes draft #292 (its branch can be deleted once this lands).
Tested
VS 2022 (MSVC 19.44) RelWithDebInfo + Ninja, Vulkan SDK 1.4.363.0, llvm-mc 21.1.8.
LEONIDA_VK_VALIDATION=1:d3d12_vulkan_device,d3d12_msaa_drawandvk_sync_validationpass, 0 VUIDs.ctest -j 6: 439 tests, all pass (xmemfailed once while other builds ran at the same time and passes 3 of 3 on its own).GPUs tested: NVIDIA GeForce RTX 4060, driver 621.14, Windows 11 Pro 26H2 (build 26300)
AI-assisted: yes (Claude Code), by a non-developer tester.
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.