Skip to content

Pin SDL3 to the jdolan/SDL ObjectivelyGPU tag - #7

Merged
jdolan merged 4 commits into
mainfrom
sdl-fork-tag
Sep 30, 2026
Merged

jdolan merged 4 commits into
mainfrom
sdl-fork-tag

Conversation

@jdolan

@jdolan jdolan commented Sep 30, 2026

Copy link
Copy Markdown
Owner

Pins SDL3 for ObjectivelyGPU to the ObjectivelyGPU tag of jdolan/SDL, which is SDL 3.4.12 plus the SDL_gpu query API that QueryPool needs. See jdolan/quetoo#1093.

Before this change SDL3 came from four sources: a 3.4.2 dmg for the xcframework, unpinned Homebrew on macOS CI, and upstream 3.4.12 for Linux CI and Windows. All of them now use the tag, so moving the tag changes SDL3 for the whole stack.

  • Frameworks/fetch-sdl3.sh downloads SDL3.dmg from the tag's release. It stores the tag's commit SHA and downloads again if the tag moves.
  • sdl3.targets downloads SDL3-devel-VC.zip into libs\SDL3-ObjectivelyGPU\. The SDL3- prefix keeps quetoo's SDL3-* DLL wildcard working.
  • macOS and Linux CI build SDL3 from the tag.
  • Releases no longer republish SDL3.xcframework.zip. No consumer reads it, and the fork publishes SDL now.
  • link-sdl3-local.sh, use-sdl3.sh and the root copy of fetch-sdl3.sh are removed.
  • QueryPool.c emits a compiler warning if the SDL3 headers lack SDL_GPU_QUERY_API.
  • Documentation/install.md documents the tag and how to move it.

The fork release is published by objectivelygpu.yml on jdolan/SDL main, from branch objectivelygpu-3.4.12. That branch also carries D3D12 stubs (the query branch did not compile on D3D12) and three Vulkan fixes. A lavapipe run with validation layers went from 9620 VUID errors to 0, with the same sample count as Metal.

Verified locally: fetch-sdl3.sh downloads and caches, the xcframework exports the query symbols, the Xcode build of the ObjectivelyGPU scheme succeeds without the warning, and QueryPool.c shows the warning against stock Homebrew SDL3.

🤖 Generated with Claude Code

jdolan and others added 2 commits September 30, 2026 12:54
The SDL_gpu query API that QueryPool uses exists only in the jdolan/SDL fork. SDL3 came from four
sources before this change: a 3.4.2 dmg for the xcframework, unpinned Homebrew on macOS CI, and
3.4.12 for Linux CI and Windows. Every one now uses the ObjectivelyGPU tag, which is 3.4.12 plus the
query API, so moving that tag changes SDL3 for the whole stack.

- fetch-sdl3.sh downloads SDL3.dmg from the tag's release, and downloads again if the tag moves.
- sdl3.targets downloads SDL3-devel-VC.zip into libs\SDL3-ObjectivelyGPU.
- macOS and Linux CI build SDL3 from the tag.
- Releases no longer republish SDL3.xcframework.zip, because the fork publishes it.
- The local SDL switch scripts (link-sdl3-local.sh, use-sdl3.sh) and the root copy of
  fetch-sdl3.sh are removed. A moved tag replaces them.

See jdolan/quetoo#1093.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Without SDL_GPU_QUERY_API, QueryPool compiles to a stub and occlusion queries are disabled, with no
other sign in the build. A compiler warning makes a build against stock SDL3 visible.

See jdolan/quetoo#1093.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The mutable-tag cache can permanently accept an outdated release asset during asynchronous republishing.

Review effort: Balanced
Findings: 1 Medium severity · 1 Low severity

Open (2)
What changed in this PR

Pins SDL3 to the jdolan/SDL ObjectivelyGPU tag across supported platforms.

Changes:

  • Updates CI and platform fetchers to use forked SDL3 artifacts.
  • Adds missing-query-API warnings and installation guidance.
  • Removes obsolete local SDL switching and release packaging.
File Description
Sources/​ObjectivelyGPU/​QueryPool.c Warns when query APIs are unavailable.
ObjectivelyGPU.xcodeproj/​project.pbxproj Updates framework script references.
ObjectivelyGPU.vs15/​sdl3.targets Fetches tagged Windows libraries.
Frameworks/​use-sdl3.sh Removes SDL switching utility.
Frameworks/​link-sdl3-local.sh Removes local SDL linker utility.
Frameworks/​fetch-sdl3.sh Fetches and caches tagged Apple framework.
fetch-sdl3.sh Removes duplicate root fetcher.
Documentation/​install.md Documents the SDL3 pin and update process.
.github/​workflows/​release.yml Stops republishing SDL3.
.github/​workflows/​build.yml Builds tagged SDL3 in macOS/Linux CI.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Frameworks/fetch-sdl3.sh
Comment thread Documentation/install.md Outdated
fetch-sdl3.sh stamped the cache with the tag's commit, even if the publish workflow had not yet
rebuilt the release for a moved tag, so the old assets stayed cached for good. It now reads the
commit from the release notes and fails if it differs from the tag. It also resolves annotated
tags to their commit, and removes the stamp before it replaces the cache.

sdl3.targets now removes a partial libs\SDL3-ObjectivelyGPU before the move, which otherwise
nested the new directory inside the old one.

See jdolan/quetoo#1093.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
gh workflow run only queues the run. Until it finishes, the moved tag's release still serves the previous assets.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@jdolan
jdolan merged commit 096ef1b into main Sep 30, 2026
3 checks passed
@jdolan
jdolan deleted the sdl-fork-tag branch September 30, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants