Contribute
Register

Radeon RX 4XX/5XX standalone system, AMDRadeonX4250.kext (GVA support H264) does not support HEVC HW

Status
Not open for further replies.
On 10.13.5, I tried with patch but fcpx is still freeze

Need update system cache, tested with 10.13.5/6 and 10.14 pb4

sudo kextcache -i /

Edit: If patch is applied successfully, IOGVACodec should change to IOGVACodex.
upload_2018-7-19_0-39-54.png
 
Last edited:
On 10.14 DP 1, AMD HEVC HW encode / decode OK, H264 decode OK, H264 encoder disabled by Apple.
On 10.14 DP 2/3, AMD HEVC encoding no longer work, HEVC HW decoding work with VLC 3.0.4 but not work with QuickTime.

On 10.13.5, for AMDEllesmereGraphicsAccelerator (RX470/480/570/580) use below patch to disable IOGVACodec, remove SwapID.kext if installed, should fix FCPX freeze without OpenCL performance drop, all CUs work.

Name
AMDRadeonX4000

Comment
Rename IOGVACodec to IOGVACodex

Find
494F4756 41436F64 6563

Replace
494F4756 41436F64 6578

What about macOS 10.13.6?
I'm using the Arbitrary patch posted before with the iGPU connector-less and it works.
 
What about macOS 10.13.6?

Tested in 10.13.6, IOGVACodec workaround patch work.
Rename IOGVACodec workaround for system without IGPU or people do not want to enable IQSV, AMDEllesmereGraphicsAccelerator (RX470/480/570/580) only, not work with RX460/560.

I'm using the Arbitrary patch posted before with the iGPU connector-less and it works.

When IQSV is enabled by connector-less ig-platform-id, do not need swapID.kext, arbitrary fake device-id or rename IOGVACodec patch, all GVA encoding and decoding are handled by IGPU, no FCPX freeze.
 
can you please give advice, what do i have to do to get hevc working on vega graphics?

software decoding works in quicktime, but fcpx sees only black as hevc video

i need both h.264 and hevc working
 
can you please give advice, what do i have to do to get hevc working on vega graphics?

Need SMBIOS fully supported by AppleGVA, below SMBIOSs are common use for system without IGPU.

MacPro5,1 does not supported by AppleGVA, no HW H264/HEVC decoding/encoding support at all.

MacPro6,1 partially supported by AppleGVA, no HW H264 decoding/encoding, HW HEVC decoding/encoding work when GPU is connected to device GFX0, IOGVACodec function still cause system freeze.

iMacPro1,1 fully supported by AppleGVA, for AMD HEVC support, GPU must connect to device GFX0, system may freeze when Apps try to utilise IOGVACodec.

software decoding works in quicktime, but fcpx sees only black as hevc video

Upload your ioreg file may helpful.

i need both h.264 and hevc working

Currently, AMD H264 encoder not work correctly or not supported by Apps, easy cause system freeze, need disable IOGVACodec (H264 encoder will not work but decoder still work, no effect to AMD HEVC support) for compatibility.

Try create a dummy kext to disable IOGVACodec, if it is called by AMDRadeonX5000 info.plist, rename key IOGVACodec to IOGVACodex, place it to /EFI/Clover/kexts/Other, see attached sample.

Or create a workaround patch to disable IOGVACodec, if it is native initiated by AMDVega10GraphicsAccelerator, see below patch.

Name
AMDRadeonX5000

Comment
IOGVACodec workaround

Find
494F4756 41436F64 6563

Replace
494F4756 41436F64 6578

Need update system cache

sudo kexcache -i /
 

Attachments

  • X5000.kext.zip
    1.2 KB · Views: 162
What should I do to get hevc working on rx470 and 10.13.6 whithout iGpu, which smbios works okey, please!
 
What should I do to get hevc working on rx470 and 10.13.6 whithout iGpu

AMDEllesmereGraphicsAccelerator (RX470/480/570/580) native support GVA HEVC, only need SMBIOS supported by AppleGVA, GPU must attached to device GFX0. May need IOGVACodec workaround for Apps compatibility.

which smbios works okey

iMac14,2 seems to be most compatible SMBIOS, supported by AppleGVA, no AGDP issue, best for DP / multi monitors, no matter IGPU + DGPU or discrete GPU standalone, all OK.
 
I think that latest Clover, Lilu and Whatevergreen broke something because it was really slow during boot and it's not HW accelerated. I also removed IntelGraphicsFixup because it wasn't required anymore.

I also tried by using only "IOGVACodec to IOGVACodex" fix but it's still a software acceleration.


What should I do now?



Just solved by using the old fixaround:
- Inject Intel enabled
- 0x59120003 as ig-platform-id
 
Last edited:
I think that latest Clover, Lilu and Whatevergreen broke something because it was really slow during boot and it's not HW accelerated. I also removed IntelGraphicsFixup because it wasn't required anymore.

I also tried by using only "IOGVACodec to IOGVACodex" fix but it's still a software acceleration.


What should I do now?



Just solved by using the old fixaround:
- Inject Intel enabled
- 0x59120003 as ig-platform-id

Tested with new Lilu 1.2.5 + WhateverGreen 1.2.0 on 10.13.6, no issue, AMD GVA support work fine.

Try update dyld_shared_cache, and rebuild system cache, AMD GVA support should work.

sudo update_dyld_shared_cache -force
sudo kextcache -i /
 
GPU must attached to device GFX0
Does it mean I need to add "change PEGP to GFX0" to the config.plist like this? I don't do that but it works well!thanks
 

Attachments

  • 202944zmmsr6d3smgrtsr8.jpg
    202944zmmsr6d3smgrtsr8.jpg
    92.1 KB · Views: 242
Status
Not open for further replies.
Back
Top