Skip to content

fix(linux/vaapi): adjust balanced preset; don't try to override default quality - #5847

Merged
ReenigneArcher merged 1 commit into
LizardByte:masterfrom
psyke83:adjust_vaapi_quality_levels
Oct 3, 2026
Merged

ReenigneArcher merged 1 commit into
LizardByte:masterfrom
psyke83:adjust_vaapi_quality_levels

Conversation

@psyke83

@psyke83 psyke83 commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

VAAPI changes:

Adjust the balanced quality calculation to ensure that the midpoint quality level is rounded up so that Intel drivers select a valid level.

Avoid sending a quality level to the driver if auto quality (0) is selected.

Screenshot

Issues Fixed or Closed

Roadmap Issues

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
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

See our AI usage policy.

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@psyke83
psyke83 marked this pull request as ready for review October 1, 2026 14:30
@psyke83 psyke83 changed the title fix(linux): adjust balanced preset; don't try to override default quality fix(linux/vaapi): adjust balanced preset; don't try to override default quality Oct 1, 2026
…lity

Adjust balanced calculation to ensure that the midpoint quality level is
rounded up so that Intel drivers select a valid level.

Avoid sending a quality level to the driver if auto quality (0) is selected.
@ReenigneArcher
ReenigneArcher force-pushed the adjust_vaapi_quality_levels branch from e180fae to 3a5882b Compare October 3, 2026 12:40
@sonarqubecloud

sonarqubecloud Bot commented Oct 3, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Bundle Report

Bundle size has no change ✅

@codecov

codecov Bot commented Oct 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 39.69%. Comparing base (a2d3713) to head (3a5882b).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/platform/linux/vaapi.cpp 0.00% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5847      +/-   ##
==========================================
- Coverage   39.69%   39.69%   -0.01%     
==========================================
  Files         123      123              
  Lines       28825    28827       +2     
  Branches    12534    12534              
==========================================
  Hits        11443    11443              
+ Misses      15177    14591     -586     
- Partials     2205     2793     +588     
Flag Coverage Δ
Alpine-aarch64 24.27% <0.00%> (-0.01%) ⬇️
Alpine-x86_64 24.39% <0.00%> (-0.01%) ⬇️
Archlinux 22.46% <0.00%> (-0.01%) ⬇️
FreeBSD-amd64 24.52% <0.00%> (-0.01%) ⬇️
Homebrew-macos-15 40.14% <ø> (ø)
Homebrew-macos-26 40.46% <ø> (ø)
Homebrew-ubuntu-24.04 26.09% <0.00%> (-0.01%) ⬇️
Linux-AppImage-aarch64 27.28% <0.00%> (+<0.01%) ⬆️
Linux-AppImage-x86_64 27.44% <0.00%> (-0.01%) ⬇️
PowerShell 100.00% <ø> (ø)
Web-UI 55.69% <ø> (ø)
Windows-AMD64 31.90% <ø> (ø)
Windows-ARM64 26.83% <ø> (+0.01%) ⬆️
macOS-arm64 33.18% <ø> (ø)
macOS-x86_64 33.77% <ø> (ø)

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

Files with missing lines Coverage Δ
src/platform/linux/vaapi.cpp 2.57% <0.00%> (-0.02%) ⬇️

... and 44 files with indirect coverage changes


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 a2d3713...3a5882b. Read the comment docs.

@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Last Updated 2026-10-03 13:58:40 UTC
Source Run CI Run #5953
Commit 3a5882b534d23f895900553588566a96cfa0b8ad

Screenshot Comparison

PR #5847 screenshots vs screenshots baseline.

Matrix: AppImage-aarch64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: AppImage-x86_64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: Windows-AMD64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: Windows-ARM64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: macOS-arm64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

Matrix: macOS-x86_64

Image Baseline PR
sunshine_tray_initial.png
sunshine_tray_menu.png
sunshine_tray_pairing_request.png
sunshine_tray_paused.png
sunshine_tray_stopped.png
sunshine_tray_streaming.png
sunshine_tray_tooltip.png

@ReenigneArcher
ReenigneArcher merged commit efe624f into LizardByte:master Oct 3, 2026
77 of 84 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.

VAAPI "auto" quality sends compression_level 0 to the driver; Intel HD 620 rejects it for HEVC and every stream aborts

2 participants