You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(tonemap): probe hardware tone mapping on the GPU detection verified - #5920
With hardware acceleration on auto and no hardware device set, a server whose GPU sits at a render node other than /dev/dri/renderD128 verifies QSV or VA-API encoding on that node but reports hardware HDR tone mapping as unavailable. Every HDR transcode then tone maps on the CPU. A container given only its second card hits this, and so does a host whose first render node belongs to another GPU. With this change the tone-map probe tests the render node detection verified, and HDR transcodes tone map on the GPU.
Every caller of tonemap.Probe passed the configured device, which is empty on auto, so the probe fell back to its fixed /dev/dri/renderD128. Transcode execution already ran on the verified device (acquireHWDevice), so the probe and the transcode were looking at different GPUs.
Approach
playback.ToneMapProbeDevice(configured, backend) returns the configured value when there is one. Otherwise, for QSV and VA-API, it returns the render node a transcode opens: the device detection verified, or the first render node when nothing is verified yet. That default now lives in one function, defaultHWDevice, which acquireHWDevice uses too, so the probe and the transcode pick the same GPU. NVENC, VideoToolbox, and any configured hw_device keep their current behavior.
All five tone-map probe callers use it: the v3 planner, jellycompat, downloads, the executor check before a transcode starts, and the transcode node's capability snapshot. The snapshot's retry lookup (tonemap.ProbeRetryAt) gets the device the build probed, because the probe cache is keyed by it and the detected render node could change between the two steps. Proxy nodes don't run the hardware tone-map probe, and the tone-map source preflight already receives the device acquireHWDevice picked, so neither changes.
Validation
Reproduced on main on an Intel Arc host, running an integrated container with only renderD129 passed through and no remap. The startup log shows QSV verified on renderD129, then hardware HDR tone mapping is unavailable ... configured hardware device is not accessible on this node. An HDR10 to SDR HLS transcode runs tonemapx with libx264.
With the fix, on the same host and setup, the tone-map probe finishes on renderD129 with tonemap_opencl for PQ, HLG, and Dolby Vision. The same transcode runs tonemap_opencl with h264_qsv on renderD129, and a frame from each build shows the same picture.
A new test drives ResolveToneMapExecutor with a fake /dev/dri (an AMD node at renderD128, an Intel node at renderD129) and checks that the hardware tone-map smoke runs on the Intel node detection verified. It fails on main, where the smoke runs on renderD128, and it also fails if the fix picks the first render node instead of the verified one.
Go gate: build, gofmt, go mod tidy -diff, vet, lint-changed, lint-router-recovery, the path, bidi, size, route, and playback-fixture checks, and the full make test-go pass. The web app is untouched.
Surface and build: server only. Before is main at 835131f; after is this branch. The live run used 1149077ae1. Later commits change an equivalent emptiness check, a renamed local, comments, the test, and how the transcode node's snapshot hands the probed device to its retry lookup, which the integrated live run doesn't exercise; transcodenode tests cover it.
Risks
Hosts in this setup now run the hardware tone-map test conversions they used to skip, the same ones a host with its GPU at renderD128 already runs. Remote transcode nodes in this setup start advertising hardware tone mapping, so their capability hash changes once after the upgrade.
Checklist
I read and can explain the complete diff.
This pull request addresses one concern.
Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
The Evidence section shows every change a user can see, or how I checked a change nobody sees.
Follow-ups
Problems found in review that predate this change:
Fixed: CodeRabbit noted that the transcode node chose the probe device again for the retry lookup, so the two could differ; 62aff72 carries it from the build. Round 2 found nothing new.
Answered: Opus suggested routing every tone-map probe through a playback wrapper so a future caller can't skip the device rule. The wrapper wouldn't enforce it, because tonemap.Probe stays callable, so the per-call rule stays; the reply is in its thread. Sol and Gemini found nothing.
Plan round, before implementation: Sol and Gemini found that the transcode node's retry lookup would miss the probe's cache entry; it uses the same device now. Opus suggested dropping the shared default and the executor-level test; both stayed, because the shared default is what keeps the probe and the transcode on one GPU, and the test goes through an existing exported function and fails on main.
AI Disclosure
Harness: Claude Code in T3 Code
Tool(s): Claude Code (Bash, Read, Edit, Agent subagents), GitHub CLI gh, Codex CLI and Antigravity for the review rounds
Model(s): claude-opus-5-5 (code and tests); review subagents on claude-opus-5-5 and claude-sonnet-5-5; plan and background review gpt-6.2-sol, claude-opus-5-5, gemini-4-neon
Involvement: Fully AI-generated, human verified
Adversarial review: a multi-agent code review at xhigh found no defect in the change; it led to a stronger test (a non-Intel first render node), a corrected AcquireHWDevice doc comment, and two small cleanups. Two problems it traced predate this change and get their own follow-ups. See Council review for the plan round and the background round.
Probe hardware tone mapping on verified render device for QSV/VAAPI
Adds playback.ToneMapProbeDevice and defaultHWDevice helpers in hwdevice.go. When no hardware device is configured for QSV or VAAPI, tone-map capability probes now use the verified render device instead of an empty device value.
acquireHWDevice is refactored to reuse defaultHWDevice; its selection and accounting behavior is unchanged.
Capability snapshot building now probes tone mapping on the selected device and stores that device with the snapshot, so retry timing via tonemap.ProbeRetryAt uses the same device (server.go, reprobe.go).
Adds a test verifying the QSV smoke command uses the verified render device across two vendor devices (tone_map_source_validation_test.go).
With hardware acceleration on auto and no hardware device set, GPU
detection verifies QSV or VA-API on the render node that exists, but every
tone-map probe caller passed the empty configured device, so the probe fell
back to /dev/dri/renderD128. On a host whose GPU is at another render node,
hardware tone mapping was reported unavailable and every HDR transcode tone
mapped in software.
The probe now tests the device a transcode opens: the configured value when
there is one, and otherwise the render node detection verified, the same
default acquireHWDevice uses. This covers the v3 planner, jellycompat,
downloads, the tone-map executor check, and the transcode node's capability
snapshot, whose retry lookup now uses the same device as the probe's cache.
Closes#5918
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
silo-triageBot
added
the
size/M
50–199 added + deleted lines (all files); change volume, not priority.
label
Dec 6, 2026
No actionable comments were generated in the recent review.
Walkthrough
Empty QSV/VAAPI configurations can now resolve to a detected default device. Tone-map probe callers use the selected device, and capability snapshot storage uses that same device when checking probe retry state. A test checks QSV/OpenCL probing with renderD129.
Adds shared default-device selection for empty QSV/VAAPI configurations. Hardware-device acquisition uses that result when available.
Use selected devices for tone-map probes internal/playback/transcode.go, internal/transcodenode/server.go, internal/transcodenode/reprobe.go, internal/api/handlers/playback_v3.go, internal/downloads/artifacts.go, internal/jellycompat/handlers_playback.go, internal/playback/tone_map_source_validation_test.go, internal/transcodenode/capability_snapshot_test.go
Tone-map probe callers use the device selected from the configured device and resolved backend. Capability snapshot retry checks use the device used for the probe. The test checks that QSV/OpenCL probing uses the detected renderD129 device.
[v1] Hardware transcoding #1171: The PR changes device selection for hardware tone-map probing, which relates to the issue’s HDR-to-SDR hardware tone-mapping objective.
Suggested reviewers:blurbery, rhainland
Merge Risk: Minimal · up to 62aff
This change makes hardware tone mapping probe the render device that detection verified, rather than assuming renderD128. No merge-blocking risk was found in the supplied context.
Security architecture risk: Minimal · up to 62aff
Playback now checks tone-map support on the GPU it would already use for an unconfigured QSV or VA-API transcode. Clients do not gain control over GPU selection, and the transcode node no longer reselects a device when scheduling a retry for a capability probe.
Security review details
Security Blast Radius
observed — The affected host operation remains an FFmpeg capability probe. For an empty QSV or VA-API configuration, the change substitutes one locally selected render node for the fixed default rather than expanding the probe to every GPU.
Trust Boundaries and Controls
observed — At the changed local playback, Jellycompat, and download call sites, server configuration and host hardware discovery supply the probe's device. These changes do not take a device path from a playback or download request.
Public contracts
observed — The changed playback and download paths can now report or use hardware tone-map support from the selected GPU. The inspected call-site changes alter the internal probe argument, not the request fields accepted from clients.
Resilience and Maintainability Implications
observed — The transcode node serializes snapshot builds and reprobes, rejects publication if the configuration key changed, and does not publish a failed build as a new capability verdict. When the matching probe cache entry has a retry deadline, publication uses that deadline unless hardware verification already calls for its own retry schedule. The device handoff does not pin the cache generation or driver fingerprint.
inferred — A render-device change under the same configuration does not itself invalidate an advertised snapshot. The node can replace it on a successful scheduled refresh or reprobe. When a frozen recipe is resolved for execution, the executor separately checks current support and refuses an unsupported mode rather than silently switching it. That check does not reserve the default device for later acquisition.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "fix(tonemap): probe hardware tone mapping on the GPU detection verified" matches the main change. The PR adds playback.ToneMapProbeDevice, which makes the tone-map probe use the render node…
Linked Issues check
[#5918] requires that, with hw_accel=auto and no hw_device, the hardware HDR tone-map probe use the render node that detection verified, not the fixed /dev/dri/renderD128. At the reviewed head, playba…
Out of Scope Changes check
All changed files relate to the #5918 fix. ToneMapProbeDevice and defaultHWDevice in hwdevice.go implement the device-selection requirement. The five caller edits pass the new device to the existing p…
Description check
The description is specific and on-topic. It names the bug (tone-map probe on auto with no device used the fixed /dev/dri/renderD128 while transcodes used the verified render node), the fix (playback.…
Full details: Title check
Explanation
The title "fix(tonemap): probe hardware tone mapping on the GPU detection verified" matches the main change. The PR adds playback.ToneMapProbeDevice, which makes the tone-map probe use the render node that hardware detection verified for QSV/VA-API when no device is configured. The title is specific and concise, and it names the primary behavior. It does not cover the shared defaultHWDevice refactor or the snapshot device reuse, which is acceptable.
Full details: Linked Issues check
Explanation
[#5918] requires that, with hw_accel=auto and no hw_device, the hardware HDR tone-map probe use the render node that detection verified, not the fixed /dev/dri/renderD128. At the reviewed head, playback.ToneMapProbeDevice (internal/playback/hwdevice.go) returns a configured device unchanged. For QSV and VA-API with no configured device, it returns defaultHWDevice: the verified device, or else the first detected render node. acquireHWDevice uses the same defaultHWDevice, so the probe and the transcode target the same GPU. All five probe callers pass this value (playback_v3.go, downloads/artifacts.go, jellycompat/handlers_playback.go, playback/transcode.go ResolveToneMapExecutor, transcodenode/server.go). The incremental change since the previous review makes the transcode node capability build return the device it probed, and the store step reuses that device for tonemap.ProbeRetryAt. This keeps the retry lookup on the same cache key as the probe. The new test TestResolveToneMapExecutorProbesTheVerifiedRenderDevice covers a verified Intel node at renderD129 over an AMD node at renderD128. The live reproduction is reported in the PR description and was not re-run here. The incremental diff could not be read from the checkout (changed blobs missing), so the transcodenode detail rests on the supplied change summary.
Full details: Out of Scope Changes check
Explanation
All changed files relate to the #5918 fix. ToneMapProbeDevice and defaultHWDevice in hwdevice.go implement the device-selection requirement. The five caller edits pass the new device to the existing probe. The acquireHWDevice refactor moves the shared default into one function so probe and transcode pick the same GPU. The incremental change in transcodenode (server.go, reprobe.go, capability_snapshot_test.go) only threads the probed device through the snapshot build and store, so the retry lookup matches the probe cache key. This supports the same requirement and is not unrelated work. The added test covers the same behavior. NVENC, VideoToolbox, configured hw_device values, proxy nodes, and the tone-map source preflight keep their existing behavior per the PR description and summary. The incremental server.go diff could not be read directly, so this verdict relies on the supplied summary for that file.
Full details: Description check
Explanation
The description is specific and on-topic. It names the bug (tone-map probe on auto with no device used the fixed /dev/dri/renderD128 while transcodes used the verified render node), the fix (playback.ToneMapProbeDevice and the shared defaultHWDevice), the affected callers, validation steps, and risks. This matches the changeset in the raw summary, so the check passes.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: f4efd218-14d8-42f0-93c2-1660a2fa1db2
Commits
Reviewing files that changed from the base of the PR and between 4bdea12 and 62aff72.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.
The fix is correct and small. acquireHWDevice keeps its old behavior after the defaultHWDevice extraction. NVENC, VideoToolbox, software, and any configured hw_device (single or list) still pass the configured value through unchanged, so the NVENC cases see no difference. All five tonemap.Probe callers and the one tonemap.ProbeRetryAt caller now use the same device rule. The new test passes at this head and fails on main for the reported reason: the hardware smoke ran on /dev/dri/renderD128 instead of the verified renderD129. It runs in about 10 ms, and nothing else would catch a caller passing the raw configured value again, so it earns its place.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments
1
Carry the device used for the probe through to snapshot publication rather than selecting it again. If the default render node changes between the probe and publication while configuration stays unchanged, the transcode node can miss the original probe’s retry entry. The separate incomplete-inventory check still schedules an early refresh when required capabilities are missing, but an otherwise complete inventory with an unsettled Dolby Vision result can fall back to the 15-minute refresh instead of the five-minute retry. At the merge base, both calls used the unchanged empty configured value and did not independently select a render node.
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 882dcd9f-8663-4fd7-a925-0d6122b32d32
Commits
Reviewing files that changed from the base of the PR and between 835131f and 4bdea12.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
The capability snapshot chose the tone-map probe's device twice: once in
the build for tonemap.Probe and again in the store for the ProbeRetryAt
lookup. With no hw_device that device is the detected render node, which
can change between the two, and the lookup would then miss the probe's
retry entry and hold an unsettled Dolby Vision inventory for the full
snapshot interval. The build now returns the device it probed, and the
store uses it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai Fixed in 62aff72. buildCapabilitySnapshotLocked now returns the device it passed to tonemap.Probe, and storeCapabilitySnapshotLocked takes it for the ProbeRetryAt lookup instead of choosing it again, so a render node that changes between the two steps can't make the lookup miss the probe's retry entry.
For best results, initiate chat on the files or code changes.
Analysis chain
Script executed:
#!/bin/bashset +e
echo'=== Current checkout ==='
git rev-parse HEAD
echo'=== Reported commit ==='
git show --stat --oneline 62aff7285c -- 2>&1| head -80
echo'=== Snapshot source in checkout ==='forfin internal/transcodenode/server.go internal/transcodenode/reprobe.go;doif [ -r"$f" ];thenecho"--- $f ---"
ast-grep outline "$f" --items all --match 'buildCapabilitySnapshotLocked|storeCapabilitySnapshotLocked|handleReprobeCapabilities'
rg -n -C 8 'buildCapabilitySnapshotLocked|storeCapabilitySnapshotLocked|tonemap\.Probe\(|tonemap\.ProbeRetryAt\('"$f"elseecho"$f is unavailable in checkout"fidoneecho'=== Current PR head from GitHub ==='
head_sha=$(gh api repos/Silo-Server/silo-server/pulls/5920 --jq '.head.sha'2>/dev/null)if [ -n"$head_sha" ];thenecho"PR head: $head_sha"
tmpdir=$(mktemp -d)trap'rm -rf "$tmpdir"' EXIT
fornamein server.go reprobe.go;do
path="internal/transcodenode/$name"if gh api -H 'Accept: application/vnd.github.raw+json'"repos/Silo-Server/silo-server/contents/$path?ref=$head_sha">"$tmpdir/$name"2>/dev/null;thenecho"--- GitHub $path ---"
ast-grep outline "$tmpdir/$name" --items all --match 'buildCapabilitySnapshotLocked|storeCapabilitySnapshotLocked|handleReprobeCapabilities'
rg -n -C 8 'buildCapabilitySnapshotLocked|storeCapabilitySnapshotLocked|tonemap\.Probe\(|tonemap\.ProbeRetryAt\('"$tmpdir/$name"elseecho"Could not retrieve $path from GitHub"fidoneelseecho'Could not retrieve current PR head from GitHub'fi
Length of output: 16252
Script executed:
#!/bin/bash
cat -n internal/transcodenode/server.go | sed -n '1737,1770p'
Length of output: 2462
@Quick104 Confirmed in the code at 62aff7285c. The build returns the device passed to tonemap.Probe, and both snapshot paths pass it to storeCapabilitySnapshotLocked for the ProbeRetryAt lookup.
I did not run tests.
Learnings added
Learnt from: Quick104
URL: https://github.com/Silo-Server/silo-server/pull/5920
Timestamp: 2026-12-06T08:11:18.928Z
Learning: Within repository "Silo-Server/silo-server", only for files matching one of ["internal/transcodenode/server.go"]: In internal/transcodenode/server.go, the capability snapshot's tonemap.ProbeRetryAt lookup must use the same device value passed to tonemap.Probe during the build. When no hardware device is configured, the detected render node can change between build and store; selecting it again can make the retry lookup miss the probe's cache entry.
Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.
Learnings used
Learnt from: Quick104
Repo: Silo-Server/silo-server PR: 794
File: internal/proxy/server.go:247-278
Timestamp: 2026-08-27T16:05:18.453Z
Learning: In `internal/proxy/server.go`, `buildCapabilitySnapshot` owns the unified `tonemap.ProbeEndpointTimeout(hwAccel, hwDevice)` deadline for both capability probes. `playback.DetectHWAccelWithFFmpegContextResult` returns `ErrHardwareDetectionIncomplete` when its hardware probe walk is incomplete. Proxy and transcode-node capability snapshot paths must not publish incomplete reports because unprobed backends marked `Verified=false` are indistinguishable from real hardware loss.
You are interacting with an AI system.
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
bugSomething isn't workinggoPull requests that update go codeimpact: perfUnusable slowness on normal hardwarepriority: P2Limited scope, workaround exists, or polishsize/M50–199 added + deleted lines (all files); change volume, not priority.
1 participant
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.
Problem
Closes #5918
Related issue: N/A
Validation tasks: unblocks #1173 C3; unblocks #1174 C3
Other clients: N/A (no client-visible change)
With hardware acceleration on
autoand no hardware device set, a server whose GPU sits at a render node other than/dev/dri/renderD128verifies QSV or VA-API encoding on that node but reports hardware HDR tone mapping as unavailable. Every HDR transcode then tone maps on the CPU. A container given only its second card hits this, and so does a host whose first render node belongs to another GPU. With this change the tone-map probe tests the render node detection verified, and HDR transcodes tone map on the GPU.Every caller of
tonemap.Probepassed the configured device, which is empty onauto, so the probe fell back to its fixed/dev/dri/renderD128. Transcode execution already ran on the verified device (acquireHWDevice), so the probe and the transcode were looking at different GPUs.Approach
playback.ToneMapProbeDevice(configured, backend)returns the configured value when there is one. Otherwise, for QSV and VA-API, it returns the render node a transcode opens: the device detection verified, or the first render node when nothing is verified yet. That default now lives in one function,defaultHWDevice, whichacquireHWDeviceuses too, so the probe and the transcode pick the same GPU. NVENC, VideoToolbox, and any configuredhw_devicekeep their current behavior.All five tone-map probe callers use it: the v3 planner, jellycompat, downloads, the executor check before a transcode starts, and the transcode node's capability snapshot. The snapshot's retry lookup (
tonemap.ProbeRetryAt) gets the device the build probed, because the probe cache is keyed by it and the detected render node could change between the two steps. Proxy nodes don't run the hardware tone-map probe, and the tone-map source preflight already receives the deviceacquireHWDevicepicked, so neither changes.Validation
renderD129passed through and no remap. The startup log shows QSV verified onrenderD129, thenhardware HDR tone mapping is unavailable ... configured hardware device is not accessible on this node. An HDR10 to SDR HLS transcode runstonemapxwithlibx264.renderD129withtonemap_openclfor PQ, HLG, and Dolby Vision. The same transcode runstonemap_openclwithh264_qsvonrenderD129, and a frame from each build shows the same picture.ResolveToneMapExecutorwith a fake/dev/dri(an AMD node atrenderD128, an Intel node atrenderD129) and checks that the hardware tone-map smoke runs on the Intel node detection verified. It fails on main, where the smoke runs onrenderD128, and it also fails if the fix picks the first render node instead of the verified one.go mod tidy -diff, vet,lint-changed,lint-router-recovery, the path, bidi, size, route, and playback-fixture checks, and the fullmake test-gopass. The web app is untouched.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/issue-5918/
Surface and build: server only. Before is main at 835131f; after is this branch. The live run used 1149077ae1. Later commits change an equivalent emptiness check, a renamed local, comments, the test, and how the transcode node's snapshot hands the probed device to its retry lookup, which the integrated live run doesn't exercise; transcodenode tests cover it.
Risks
Hosts in this setup now run the hardware tone-map test conversions they used to skip, the same ones a host with its GPU at
renderD128already runs. Remote transcode nodes in this setup start advertising hardware tone mapping, so their capability hash changes once after the upgrade.Checklist
Follow-ups
Problems found in review that predate this change:
qsvorvaapibackend with no device uses the first render node of any vendor until a detection walk runs. It changes the same function as this PR, so its fix starts after this merges.playback.hw_deviceto execution.hwdevice.go, so it starts after this merges.Council review
Rounds: 2, last reviewed 62aff72
Fixed: CodeRabbit noted that the transcode node chose the probe device again for the retry lookup, so the two could differ; 62aff72 carries it from the build. Round 2 found nothing new.
Answered: Opus suggested routing every tone-map probe through a playback wrapper so a future caller can't skip the device rule. The wrapper wouldn't enforce it, because
tonemap.Probestays callable, so the per-call rule stays; the reply is in its thread. Sol and Gemini found nothing.Plan round, before implementation: Sol and Gemini found that the transcode node's retry lookup would miss the probe's cache entry; it uses the same device now. Opus suggested dropping the shared default and the executor-level test; both stayed, because the shared default is what keeps the probe and the transcode on one GPU, and the test goes through an existing exported function and fails on main.
AI Disclosure
gh, Codex CLI and Antigravity for the review roundsAcquireHWDevicedoc comment, and two small cleanups. Two problems it traced predate this change and get their own follow-ups. See Council review for the plan round and the background round.🤖 Generated with Claude Code
Note
Probe hardware tone mapping on verified render device for QSV/VAAPI
Adds
playback.ToneMapProbeDeviceanddefaultHWDevicehelpers in hwdevice.go. When no hardware device is configured for QSV or VAAPI, tone-map capability probes now use the verified render device instead of an empty device value.ResolveToneMapExecutorin transcode.go.acquireHWDeviceis refactored to reusedefaultHWDevice; its selection and accounting behavior is unchanged.tonemap.ProbeRetryAtuses the same device (server.go, reprobe.go).Macroscope summarized 62aff72.