Skip to content

gpu: the depth bounds test works (fxceless c96b4f2, depth-bounds part) - #15

Merged
devin-ai-integration[bot] merged 2 commits into
mainfrom
devin/depth-bounds
Nov 25, 2026
Merged

devin-ai-integration[bot] merged 2 commits into
mainfrom
devin/depth-bounds

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

Ports the depth-bounds part of fxceless c96b4f2 (itself upstream PR #82 by Kaivyyy): the depth bounds test now works. Before, a pipeline enabling it had the flag silently dropped — its draws passed at every depth — and the title's OMSetDepthBounds hit an ignored-state stub. On the fxceless test machine (RTX 4070) the first room is lit by its lamp for the first time: walls, table, bunks.

  • GraphicsState keeps a depth_bounds flag parsed from DEPTH_STENCIL1 streams; describe() carries it, so such pipelines get their own library names.
  • The plain D3D12_GRAPHICS_PIPELINE_STATE_DESC has nowhere for the flag, so a pipeline that enables the test is made from a subobject stream with DEPTH_STENCIL1 (graphics_depth_bounds_pipeline, generic over GS presence); mesh pipelines emit either depth subobject kind through a now-generic stream.
  • Command-list method 0x220 is wired to state::depth_bounds → draw::depth_bounds → OMSetDepthBounds on ID3D12GraphicsCommandList1, gated on the host's D3D12_OPTIONS2.DepthBoundsTestSupported (logged once). A pipeline enabling the test on a host without support warns and falls back as before.

Adaptations to this tree

  • No per-state replay tracking for the bounds value: this tree doesn't cut lists at memory waits the way theirs does, so the value forwards directly — same shape as stencil_ref here.
  • Not ported from c96b4f2: the perf defaults (copy-back thread, wide copy-back, card copy sizing — coupled to their copy-back architecture), the bake-time texture pre-uploads and placed-texture keying (coupled to their texture placement).

Local: clippy -D warnings clean, victory-gpu 124/124.

Link to Devin session: https://app.devin.ai/sessions/39a24dfe2c184165b42b2108a96286b6
Open in Devin Desktop: https://app.devin.ai/desktop/session/39a24dfe2c184165b42b2108a96286b6?variant=devin
Requested by: @Personed

A pipeline that enables the depth bounds test is made from a stream
with a DEPTH_STENCIL1 subobject under its own library name (the plain
description has nowhere for the flag, and was silently dropping it:
such draws passed at every depth), and the title's OMSetDepthBounds -
command list method 0x220, until now an ignored-state stub - reaches
the host list on hosts that support the test. On the fxceless test
machine the first room is lit by its lamp for the first time: walls,
table, bunks.

Adapted to this tree: no per-state replay tracking (lists are not cut
at memory waits the way theirs are), matching how stencil_ref already
forwards here. Mesh pipelines emit the depth subobject of either kind
through a stream generic in it.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot merged commit 3444688 into main Nov 25, 2026
4 checks passed
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.

1 participant