Skip to content

revert: "feat(linux/vulkan): enable RADV low-latency Vulkan Video encoding"#4989

Merged
ReenigneArcher merged 1 commit intoLizardByte:masterfrom
neatnoise:radv-lowlatency-vulkan-video
Apr 14, 2026
Merged

revert: "feat(linux/vulkan): enable RADV low-latency Vulkan Video encoding"#4989
ReenigneArcher merged 1 commit intoLizardByte:masterfrom
neatnoise:radv-lowlatency-vulkan-video

Conversation

@neatnoise
Copy link
Copy Markdown
Contributor

Description

Follow-up to #4984. Removes lowlatencyenc from the RADV_PERFTEST environment variable.

As @gschintgen pointed out in #4984 (comment), the lowlatencyenc flag in RADV_PERFTEST is a driver-level override that forces ultra-low-latency tuning regardless of what the application requests via the Vulkan API.

This is redundant because Sunshine already passes the user-configured vk.tune setting to FFmpeg, which sets tuningMode in VkVideoEncodeUsageInfoKHR (see vulkan_encode.c:796). RADV respects this API-level tuning parameter, so the env var is unnecessary and would override the user's chosen tuning setting (default is ll, not ull).

The AMD_DEBUG=lowlatencyenc for the RadeonSI/VA-API path is unaffected — that path does not have the same API-level tuning control.

See Mesa MR discussion: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40524#note_3384466

Screenshot

Issues Fixed or Closed

Fixes concern raised in #4984: #4984 (comment)

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

  • 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

@ReenigneArcher ReenigneArcher changed the title fix(linux/vulkan): remove redundant RADV lowlatencyenc env override revert: "feat(linux/vulkan): enable RADV low-latency Vulkan Video encoding" Apr 14, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Bundle Report

Bundle size has no change ✅

@sonarqubecloud
Copy link
Copy Markdown

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 17.99%. Comparing base (5364b00) to head (3fe5309).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4989      +/-   ##
==========================================
- Coverage   17.99%   17.99%   -0.01%     
==========================================
  Files         108      108              
  Lines       23424    23424              
  Branches    10340    10340              
==========================================
- Hits         4216     4214       -2     
- Misses      15118    17694    +2576     
+ Partials     4090     1516    -2574     
Flag Coverage Δ
Archlinux 11.60% <0.00%> (ø)
FreeBSD-14.3-aarch64 ?
FreeBSD-14.3-amd64 13.59% <0.00%> (+<0.01%) ⬆️
Homebrew-ubuntu-22.04 13.92% <100.00%> (ø)
Linux-AppImage 12.21% <100.00%> (ø)
Windows-AMD64 14.90% <ø> (ø)
Windows-ARM64 13.22% <ø> (ø)
macOS-arm64 19.02% <ø> (ø)
macOS-x86_64 18.39% <ø> (ø)

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

Files with missing lines Coverage Δ
src/platform/linux/misc.cpp 15.60% <100.00%> (ø)

... and 47 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

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

@ReenigneArcher ReenigneArcher merged commit 75a3bed into LizardByte:master Apr 14, 2026
73 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.

2 participants