mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:30:52 +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#1217
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/1184
Author: @TimIdle
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:oldpr-9971-color-minmax📝 Commits (2)
d2e7d19Implement Vulkan color MIN and MAX resolves4c484eetest: d3d12_vulkan_device expects a colour MAX resolve to be accepted and keeps a non-resolve mode refused📊 Changes
12 files changed (+730 additions, -11 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+6 -0)📝
runtime/shims/d3d12_com.cpp(+9 -0)📝
runtime/shims/d3d12_com.h(+1 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+18 -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/vulkan_backend.h(+20 -0)➕
runtime/src/vulkan_color_resolve.h(+278 -0)📝
runtime/src/vulkan_replay.h(+119 -8)📝
runtime/test/d3d12_msaa_draw_test.cpp(+38 -3)📝
runtime/test/d3d12_vulkan_device_test.cpp(+5 -0)📄 Description
Claimed in the coordination issue as: OLD-9971 (claim)
What and why
This carries forward
old-pr/9971by @tedin7 (draft #240). The two commits are cherry-picked ontomainunchanged, with tedin7 kept as author.mainservesResolveSubresourceRegionwithD3D12_RESOLVE_MODE_MINandMAXfor depth only. A colour MIN or MAX resolve is refused, so the list fails atClose. Core Vulkan has no colour min or max resolve, so this adds a small fragment-shader resolve (runtime/src/vulkan_color_resolve.h,color_resolve.frag) for typed 2D colour resources, recorded in the replay.docs/d3d12_vulkan.mdgets the note.Tested
Native Windows 11 10.0.26300, MSVC 19.44, RelWithDebInfo,
LEONIDA_REQUIRE_VULKAN=ON, onmain42537e7plus the two commits.d3d12_msaa_draw_testwith the fixd3d12_msaa_draw_testwithmain's shims and replayline 296: list->Close() == S_OK(measured on6293c1c, not rerun after this rebase)d3d12_vulkan_device_testwith the fixd3d12_vulkan_device_testwithmain's shims and replayline 6291: list->Close() == S_OK(measured on6293c1c, not rerun after this rebase)ctest -j 6gameinputandgameinput_scriptdisabled. The one failure isd3d12_depth_stencil_uav, a segmentation fault after 304 s in the first run after the build, under-j 6load. Run alone, it passes 3 of 3 in about 6 s. This PR does not touch that code.GPUs tested: NVIDIA GeForce RTX 2050 (Ampere GA107, laptop), driver 621.24, Windows 11
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (No translator rule here.)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.