Skip to content

refactor(streaming): compile Xbox scanout only for nxdk - #387

Merged
ReenigneArcher merged 1 commit into
masterfrom
codex/fix-sonar-findings
Nov 28, 2026
Merged

ReenigneArcher merged 1 commit into
masterfrom
codex/fix-sonar-findings

Conversation

@ReenigneArcher

Copy link
Copy Markdown
Member

Description

SonarCloud reports five const-correctness findings in desktop stubs for the original Xbox GPU overlay and software scanout. The Xbox implementations change scanout state and refresh the overlays’ YUY2 caches.

Compile the Xbox presenters and their FFmpeg integration only when NXDK is defined. Desktop playback continues through SDL. The Xbox path retains its GPU, direct framebuffer, and SDL fallback order.

Screenshot

Issues Fixed or Closed

Roadmap Issues

Testing

  • Built the Windows SDL client and packaged the original Xbox ISO.
  • Passed all 561 native tests with ctest --test-dir cmake-build-screenshot-tests --output-on-failure, including the GPU overlay and software scanout tests using Xbox API shims.
  • Passed the strict Dockle api build, the repository formatter, and git diff --check.
  • Emulator and physical-console playback were outside local validation.

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Tests have been added or updated for new or modified functionality, including regression tests for bug fixes

AI Usage

See our AI usage policy.

  • AI tools were used while preparing this PR

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.95%. Comparing base (a8c1802) to head (2d0f7bf).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #387      +/-   ##
==========================================
+ Coverage   90.90%   90.95%   +0.05%     
==========================================
  Files          81       81              
  Lines        9544     9532      -12     
  Branches     4014     4012       -2     
==========================================
- Hits         8676     8670       -6     
+ Misses        757      751       -6     
  Partials      111      111              
Flag Coverage Δ
Linux-aarch64 76.05% <ø> (+0.07%) ⬆️
Linux-x86_64 75.14% <ø> (+0.07%) ⬆️
Windows-AMD64 77.02% <ø> (-0.01%) ⬇️
Windows-ARM64 76.92% <ø> (-0.01%) ⬇️
Xbox-host-Linux 75.14% <ø> (+0.07%) ⬆️
Xbox-host-Windows 77.02% <ø> (-0.01%) ⬇️
Xbox-host-macOS 64.76% <ø> (+0.06%) ⬆️
macOS-arm64 64.76% <ø> (+0.06%) ⬆️
macOS-x86_64 64.91% <ø> (+0.06%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/streaming/pvideo_presenter.cpp 95.16% <ø> (+0.82%) ⬆️
src/streaming/pvideo_presenter.h 100.00% <ø> (ø)
src/streaming/software_scanout.cpp 97.22% <ø> (+4.81%) ⬆️
src/streaming/software_scanout.h 100.00% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a8c1802...2d0f7bf. Read the comment docs.

@ReenigneArcher
ReenigneArcher merged commit bd161df into master Nov 28, 2026
29 checks passed
@ReenigneArcher
ReenigneArcher deleted the codex/fix-sonar-findings branch November 28, 2026 05:29
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