Repository navigation
[skia-sync] Merge upstream chrome/m156 bug fixes - #5711
Conversation
Advance the release/4.156.x Skia submodule to the validated chrome/m156 bug-fix merge and record the exact fork and upstream commits in Component Governance metadata. Co-authored-by: Copilot <[email protected]>
📦 Try the packages from this PRWarning Do not run these scripts without first reviewing the code in this PR. Step 1 — Download the packages bash / macOS / Linux: curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 5711PowerShell / Windows: iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 5711"Step 2 — Add the local NuGet source dotnet nuget add source ~/.skiasharp/hives/pr-5711/packages --name skiasharp-pr-5711More options
Or download manually from Azure Pipelines — look for the Remove the source when you're done: dotnet nuget remove source skiasharp-pr-5711 |
📊 SkiaSharp benchmarks — PR #5711⭐ this PR (full source build) vs 🌙 nightly · Linux · Windows · macOS
Highlights⏱️ Time — 🔴 41 slower · 🟢 21 faster
Full per-OS benchmark deltasLinux⏱️ Time (vs 🌙 nightly
Windows⏱️ Time (vs 🌙 nightly
macOS⏱️ Time (vs 🌙 nightly
|
[M156] Fix Vulkan wait reporting and displacement precision (#450) Context: mono/SkiaSharp#5711 Integrate chrome/m156 through 8e7863a into release/4.156.x, preserving upstream merge ancestry and existing fork patches. C API declarations and dependency pins remain unchanged. ~~ Report failed Vulkan synchronous waits ~~ Synchronous submission previously returned queue-submit success even when the subsequent fence wait failed. Return a boolean from GrVkPrimaryCommandBuffer::forceSync and require both submission and synchronization to succeed in GrVkGpu::submitCommandBuffer. Retain the existing VK_TIMEOUT retry and error diagnostics. Keep command buffer and semaphore cleanup on the existing path even when the wait fails; asynchronous submissions retain their previous behavior. ~~ Match displacement offsets to full-precision bounds ~~ Half-precision displacement calculations could round differently from the float-precision bounds calculations, producing inconsistent sampling near filter boundaries. Use float2 for the displacement scale uniform and offset arithmetic. Update the runtime-effect declaration, SkSL source and both generated shader representations together. Color-channel selection remains in half precision; the existing SkV2 uniform assignment remains compatible. Co-authored-by: Nathan Sanchez <[email protected]> Co-authored-by: Michael Ludwig <[email protected]> Co-authored-by: Copilot <[email protected]>
Record native merge 712ea097151d4951652dee046a8944376fd8df1b in the gitlink and Component Governance manifest. Its tree is identical to the reviewed native head. Co-authored-by: Copilot App <[email protected]>
Description
Automated upstream bug-fix sync for m156. Targeting release branch
release/4.156.x(mono/skiarelease/4.156.x).This pull request was produced by skia-upstream-sync.
Related issues
N/A — automated upstream synchronization.
Required skia PR
Requires mono/skia#450
Areas affected
binding/)externals/skia/src/c,include/c)Changes
Advances the
release/4.156.xSkia submodule to validated native merge796c0cc256ba1252fd0e755f5d8ec9f2dff9b608and records upstreamchrome/m156commit8e7863a6ff2ee1dbc6ec0631b61f3631852c8878in Component Governance metadata.There is no public managed API or generated P/Invoke change. Observable behavior inherits two upstream corrections: synchronous Vulkan submission can now report fence-wait failure internally, and displacement-filter rendering uses higher-precision scale math. Dependency identities and semantic versions are unchanged.
Testing
build_native.py).build_managed.py).dotnet test tests/SkiaSharp.Tests.Console.slnx -p:TargetFramework=net10.0 -p:TargetFrameworks=net10.0: passed.GpuPolicywas skipped; Vulkan initialized and executed successfully with the provisioned lavapipe software ICD.Human review
Confirm the inherited rendering and Vulkan failure-reporting behavior is appropriate for the 4.156 release line. Linux x64 was built and tested; Windows, macOS, Android, iOS/tvOS, Tizen, and WASM were not executed locally and remain CI/cross-platform review items. No new tests were added because the sync changes no binding surface and the complete existing CPU/GPU suite passed against the rebuilt native library.
Checklist
Changesabove lists all public API and behavioral changes or states that none changedmono/skiaPR linked above and bindings regeneratedLast rendered by the sync workflow: 2026-11-12T20:16:20Z