gfx: scene-concept rework (the coupled core of #2109) - #2120
Open
jcelerier wants to merge 10 commits into
Open
Conversation
jcelerier
force-pushed
the
pland/scene
branch
2 times, most recently
from
July 17, 2026 11:58
6135c95 to
726e579
Compare
jcelerier
force-pushed
the
planc/gfx-infra
branch
2 times, most recently
from
July 17, 2026 14:10
1b6651e to
08516ad
Compare
jcelerier
added a commit
that referenced
this pull request
Jul 17, 2026
FIX-ISF (libisf/src/isf.cpp — applies on top of this branch's ISF/CSF feature rework, hence #2120 not #2119): - write_isf: seekp(0,end)-before-tellp corrupted the emitted descriptor - use-after-move on m_sourceVertex -> guard with .empty() - parse_shadertoy_json: GLSL45 preludes + iMouse vec4(0,0,0,0) - glsl_sandbox: duplicate-TIME uniform guard - replace_identifier: word-boundary match Tests: test_unit_isf_importers (all 5 importer branches); golden-image render regression (16 pinned JS-corpus cases, llvmpipe, SSIM/PSNR); timeline-driven scenario ramp; gfx resource/leak soak (DISABLED — guards a still-unfixed render-clock teardown UAF); live-edit churn corpus. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rZgzE8JjWvHDtaVUhxpLE
jcelerier
added a commit
that referenced
this pull request
Jul 17, 2026
FIX-ISF (libisf/src/isf.cpp — applies on top of this branch's ISF/CSF feature rework, hence #2120 not #2119): - write_isf: seekp(0,end)-before-tellp corrupted the emitted descriptor - use-after-move on m_sourceVertex -> guard with .empty() - parse_shadertoy_json: GLSL45 preludes + iMouse vec4(0,0,0,0) - glsl_sandbox: duplicate-TIME uniform guard - replace_identifier: word-boundary match Tests: test_unit_isf_importers (all 5 importer branches); golden-image render regression (16 pinned JS-corpus cases, llvmpipe, SSIM/PSNR); timeline-driven scenario ramp; gfx resource/leak soak (DISABLED — guards a still-unfixed render-clock teardown UAF); live-edit churn corpus. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rZgzE8JjWvHDtaVUhxpLE
jcelerier
added a commit
that referenced
this pull request
Jul 17, 2026
Headless llvmpipe golden+value harness for the Gfx::Text process: grabs the untouched-defaults frame (hard off-screen-default visibility assertion — guards the #2119 default-position fix), then live-edits text/font/size/position/scale/ color over OSC /script and asserts pixel VALUES per case (coverage, bbox ordering across sizes, centroid movement, channel dominance, blank empty string, unicode/CJK/tofu/2000-char) + golden refs (compare.py strict). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rZgzE8JjWvHDtaVUhxpLE
jcelerier
force-pushed
the
pland/scene
branch
2 times, most recently
from
July 18, 2026 13:37
019649f to
cb34e12
Compare
jcelerier
force-pushed
the
planc/gfx-infra
branch
2 times, most recently
from
July 18, 2026 14:17
2676d67 to
387b649
Compare
jcelerier
force-pushed
the
planc/gfx-infra
branch
from
July 19, 2026 03:14
387b649 to
65ff611
Compare
jcelerier
force-pushed
the
pland/scene
branch
2 times, most recently
from
July 19, 2026 21:59
bd66e34 to
0da070a
Compare
jcelerier
force-pushed
the
planc/gfx-infra
branch
from
July 19, 2026 21:59
65ff611 to
af14159
Compare
jcelerier
force-pushed
the
pland/scene
branch
4 times, most recently
from
July 22, 2026 06:22
9e6753d to
f4015d0
Compare
jcelerier
force-pushed
the
planc/gfx-infra
branch
from
July 22, 2026 16:08
0c6ea86 to
b3acb7e
Compare
jcelerier
force-pushed
the
planc/gfx-infra
branch
from
July 24, 2026 21:32
b3acb7e to
5411148
Compare
jcelerier
force-pushed
the
planc/gfx-infra
branch
from
July 24, 2026 23:07
5411148 to
2b108de
Compare
jcelerier
force-pushed
the
planc/gfx-infra
branch
from
July 25, 2026 11:53
2b108de to
51e0e1b
Compare
jcelerier
force-pushed
the
planc/gfx-infra
branch
from
August 16, 2026 15:29
2ff2547 to
1bef3fc
Compare
jcelerier
added a commit
that referenced
this pull request
Aug 16, 2026
One process per case, so a case that crashes or hangs takes only itself down, and each tester builds its document from a clean application either way. Verdicts are separated by what actually happened rather than lumped into pass/fail: RENDER, BLANK, NORENDER, SCREEN, FAIL. SCREEN exists because a grab that falls back to capturing the desktop is not a weaker result, it is a meaningless one, and the sweep exits nonzero if any case produced one. First run, 130 cases: 81 render on the stack against 60 on master, the difference being shaders whose ISF features only exist above #2120 -- the measured form of the claim that no pixel test can run below it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rZgzE8JjWvHDtaVUhxpLE
jcelerier
force-pushed
the
planc/gfx-infra
branch
from
August 16, 2026 16:33
1bef3fc to
7b1b852
Compare
jcelerier
force-pushed
the
planc/gfx-infra
branch
from
August 16, 2026 17:44
7b1b852 to
09e45ad
Compare
jcelerier
added a commit
that referenced
this pull request
Aug 16, 2026
One process per case, so a case that crashes or hangs takes only itself down, and each tester builds its document from a clean application either way. Verdicts are separated by what actually happened rather than lumped into pass/fail: RENDER, BLANK, NORENDER, SCREEN, FAIL. SCREEN exists because a grab that falls back to capturing the desktop is not a weaker result, it is a meaningless one, and the sweep exits nonzero if any case produced one. First run, 130 cases: 81 render on the stack against 60 on master, the difference being shaders whose ISF features only exist above #2120 -- the measured form of the claim that no pixel test can run below it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rZgzE8JjWvHDtaVUhxpLE
jcelerier
force-pushed
the
planc/gfx-infra
branch
from
August 16, 2026 18:08
09e45ad to
dffb9e6
Compare
jcelerier
added a commit
that referenced
this pull request
Aug 16, 2026
One process per case, so a case that crashes or hangs takes only itself down, and each tester builds its document from a clean application either way. Verdicts are separated by what actually happened rather than lumped into pass/fail: RENDER, BLANK, NORENDER, SCREEN, FAIL. SCREEN exists because a grab that falls back to capturing the desktop is not a weaker result, it is a meaningless one, and the sweep exits nonzero if any case produced one. First run, 130 cases: 81 render on the stack against 60 on master, the difference being shaders whose ISF features only exist above #2120 -- the measured form of the claim that no pixel test can run below it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rZgzE8JjWvHDtaVUhxpLE
jcelerier
force-pushed
the
planc/gfx-infra
branch
from
August 16, 2026 18:43
dffb9e6 to
e964ebc
Compare
jcelerier
force-pushed
the
planc/gfx-infra
branch
from
August 16, 2026 19:23
e964ebc to
98f2876
Compare
jcelerier
force-pushed
the
pland/scene
branch
2 times, most recently
from
August 16, 2026 19:57
671136f to
119e5ef
Compare
jcelerier
force-pushed
the
planc/gfx-infra
branch
from
August 17, 2026 02:51
98f2876 to
1018e16
Compare
jcelerier
force-pushed
the
pland/scene
branch
2 times, most recently
from
August 17, 2026 13:30
4e0f9ff to
29bed8a
Compare
Bring in OffsetAllocator to back the slab-allocated GPU arenas. (cherry picked from commit 5b7c7fb) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rZgzE8JjWvHDtaVUhxpLE
…ebuilt The core scene-GPU rework. Adds the supporting infrastructure — OffsetAllocator-backed GPU arenas (GpuResourceRegistry), a shared decoded-asset cache (AssetTable + TextureLoader), scene math and pipeline-state helpers, the flat scene state and packer (SceneGPUState), an offscreen RHI device and preview widget — then reworks the pipeline on top of it: the ISF parser and nodes gain 3D samplers, uniform inputs and geometry/vertex stages; the compute and raster pipelines become scene-aware with multiple render targets and auxiliary outputs; the render graph updates edges, render targets and passes in place instead of rebuilding wholesale; and the filter, texture-port, window, capture and video-output paths follow the new node and renderer interfaces. (cherry picked from commit b824245) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rZgzE8JjWvHDtaVUhxpLE
ScenePreprocessorNode turns a scene spec into flat draw commands and arena uploads; SceneFilterNode, FlattenedSceneFilterNode and MergeGeometriesNode operate on flattened scenes. (cherry picked from commit f7bdb1d) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rZgzE8JjWvHDtaVUhxpLE
(cherry picked from commit 8b2c463) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rZgzE8JjWvHDtaVUhxpLE
(cherry picked from commit daa9a69)
…etProcessLoop (cherry picked from commit b1b0062)
buildPipeline returns a null pipeline when QRhiGraphicsPipeline::create() fails (transient during graph rebuild). InvertYRenderer::finishFrame dereferenced it via setGraphicsPipeline (Q_ASSERT/null-deref), and quadRenderPass asserted on the then-missing pass. Both now skip the draw, matching defaultRenderPass / the if(pip.pipeline) guard at pass creation. (cherry picked from commit 1290424)
libisf/src/isf.cpp: - write_isf: seekp(0,end)-before-tellp corrupted the emitted descriptor - use-after-move on m_sourceVertex -> guard with .empty() - parse_shadertoy_json: GLSL45 preludes + iMouse vec4(0,0,0,0) - glsl_sandbox: duplicate-TIME uniform guard - replace_identifier: word-boundary match Tests: test_unit_isf_importers (all 5 importer branches); golden-image render regression (16 pinned JS-corpus cases, llvmpipe, SSIM/PSNR); timeline-driven scenario ramp; gfx resource/leak soak (DISABLED — guards a still-unfixed render-clock teardown UAF); live-edit churn corpus. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rZgzE8JjWvHDtaVUhxpLE
Headless llvmpipe golden+value harness for the Gfx::Text process: grabs the untouched-defaults frame (hard off-screen-default visibility assertion — guards the default-position fix), then live-edits text/font/size/position/scale/ color over OSC /script and asserts pixel VALUES per case (coverage, bbox ordering across sizes, centroid movement, channel dominance, blank empty string, unicode/CJK/tofu/2000-char) + golden refs (compare.py strict). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rZgzE8JjWvHDtaVUhxpLE
destroyOutput() is the synchronous counterpart of the async REMOVE_NODE path, which already calls removeNodeAndEdges. Without it, Graph::removeNode leaves m_edges holding Edges that point at the freed output's Ports, so ~Graph -> clearEdges() unlinks them from freed memory. Also finish the render-clock conversion in the destructor: the clocks must be released before the timer pool they borrow from. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014rZgzE8JjWvHDtaVUhxpLE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The scene-concept rework — the coupled core of #2109. This is the part that couldn't be decomposed further: a scene-aware render pipeline plus the GPU-resident scene state, node-lifecycle, and per-backend plumbing that all change together. Everything separable was already pulled into #2117/#2118/#2119 to make this PR as small as it can be.
Rebased onto current master (auto-merges cleanly with master's newer nodal-selection work). Stacked on #2119; retargets to master as the stack merges.
Commits
OffsetAllocatorsubmodule (arena backing for GPU-resident scene data).SceneGPUState, theGpuResourceRegistryarena, incremental RenderList rebuild, and the QRhi pipeline cache.This wires up the caching/offscreen infrastructure landed in #2119.
Validation
ctest: 17/17.🤖 Generated with Claude Code