Skip to content

[Bug]: RX 7000 series encoding broken with CreateSurfaceFromDX11Native on driver 25.10.2 / AMF 1.5.0 #574

@Esvandiary

Description

@Esvandiary

Describe the bug
H.264 / HEVC / AV1 encoding results in broken output after updating to 25.10.2, if input surfaces are created via CreateSurfaceFromDX11Native (possibly only with textures in BGRA formats?). This issue appears to be specific to RX 7000 series GPUs.

To Reproduce
Steps to reproduce the behavior:
(Sorry for the rubbish steps, I'll try to make a minimal example when we have a confirmed in-house repro to test against and we're not still firefighting this issue with users.)

  1. Create DX11 textures in DXGI_FORMAT_B8G8R8A8_UNORM format
  2. Create AMF surfaces from them via CreateSurfaceFromDX11Native
  3. Pass those surfaces as inputs to the AMF encoder
  4. Observe that (after a maximum of ~10s) the video output will be broken with odd gridlines (possibly every 16x16...?)
  5. (Optional) Rollback to 25.10.1 or earlier and observe the same thing doesn't happen

Setup:

  • OS: Windows 10/11
  • Driver Version: 25.10.2
  • GPU: Seemingly any RX7000 series GPU
    • Observed as broken so far: 7800 XT, 7900 XTX, 7900 GRE, 7700S
    • Working so far: 5500 XT, 5700 XT, 9070 XT
  • Component: Encoder

Debug Log (please upload or paste):
(No errors observed from AMF, and no warnings which weren't present in the previous driver release.)

Expected behavior
Normal H.264 video output

Screenshots
Image

Additional context
We are currently building against the AMF 1.4.30 headers in case that's relevant. Issue persists when built against AMF 1.5.0 headers.
I haven't yet confirmed whether any other codecs are affected; all the logs I've seen so far are for H.264. Confirmation for HEVC and AV1 also.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions