Bug 494058

Summary: h264 client corruption although vaapi hardware support is available.
Product: [Plasma] KRdp Reporter: r.hessel.git
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: REPORTED ---    
Severity: normal CC: ahiemstra, jerrysteve1101
Priority: NOR    
Version: 6.1.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: rendering issues

Description r.hessel.git 2024-10-03 18:46:44 UTC
Created attachment 174378 [details]
rendering issues

SUMMARY


STEPS TO REPRODUCE
1. Run krdp on host AMD A10-7800 Kaveri (Radeon R7 GPU with working vaapi) 
2. Connect from krdc on client

OBSERVED RESULT
```
[h264_vaapi @ 0x7f821c37e700] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
```
And blue screen on krdc from client, mouse cursor seems to move correctly though.

EXPECTED RESULT
Should see the screen.

## SOFTWARE/OS VERSIONS

### Host
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.9.12-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × AMD A10-7800 Radeon R7, 12 Compute Cores 4C+8G
Memory: 6.7 GiB of RAM
Graphics Processor: AMD Radeon R7 Graphics

Note: I am using the 6.9.x kernel because vappi is broken on my GPU on the 6.10 kernels, its already logged on MESA.

Host VAAPI
```
vainfo
Trying display: wayland
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib64/dri-nonfree/radeonsi_drv_video.so
libva info: Trying to open /usr/lib64/dri-freeworld/radeonsi_drv_video.so
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.21 (libva 2.21.0)
vainfo: Driver version: Mesa Gallium driver 24.1.7 for AMD Radeon R7 Graphics (radeonsi, kaveri, LLVM 18.1.6, DRM 3.57, 6.9.12-200.fc40.x86_64)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileNone                   : VAEntrypointVideoProc
```


### Client
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Kernel Version: 6.10.11-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-4710HQ CPU @ 2.50GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4600

Note: running the client with an Nvidia GTX 850M doesn't change the result, so it's a host side issue.
Also attempted with both krdc and remmina.