Skip to content

VK: an AV1 sequence without a colour description passes "unspecified" colours - #322

Merged
dzhdanNV merged 1 commit into
NVIDIA-RTX:mainfrom
Nullpoint56:vk-av1-color-unspecified
Nov 7, 2026
Merged

dzhdanNV merged 1 commit into
NVIDIA-RTX:mainfrom
Nullpoint56:vk-av1-color-unspecified

Conversation

@Nullpoint56

Copy link
Copy Markdown
Contributor

FillVideoAV1ColorConfig (VideoHelpersVK.h:454, since e472b0d) copies colorPrimaries,
transferCharacteristics and matrixCoefficients whatever the flags say. NRI's own sequence header
writer (SharedVideo.h:2644) writes them only with COLOR_DESCRIPTION_PRESENT, as AV1 does, and AV1
infers CP/TC/MC_UNSPECIFIED (2) without one. A desc that leaves them 0, reserved for primaries and
transfer, reaches the driver as reserved values: on v191, RTX 4070 SUPER, vkCreateVideoSessionParametersKHR
for an AV1 encode session fails with VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR, no validation
message. It succeeds with the description and 2/2/2, or with 1/1/1 and no description.

Without COLOR_DESCRIPTION_PRESENT the three values are now the inferred "unspecified" ones; with
it, the desc's, as before.

… colours

"FillVideoAV1ColorConfig" copied the colour primaries, transfer characteristics and matrix
coefficients whatever the flags say; without "COLOR_DESCRIPTION_PRESENT" AV1 infers UNSPECIFIED (2),
and the desc's 0s (reserved for primaries and transfer) made the driver refuse the session
parameters with VK_ERROR_INVALID_VIDEO_STD_PARAMETERS_KHR.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-07T00:35:56.494376Z 0db7e15 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dzhdanNV
dzhdanNV merged commit d466e2c into NVIDIA-RTX:main Nov 7, 2026
@dzhdanNV

dzhdanNV commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

Thanks for fixing video too. Merged!

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