Contribute
Register

Radeon Compatibility Guide - ATI/AMD Graphics Cards

Yes, pure HEVC decoding but not HEVC encoding. H264 to HEVC transcoding should like attached png.



Need VLC 3 and up for HEVC decoding, HW HEVC decoding not implemented, use QuickTime or IINA for HEVC decoding test.

Edit: use Subler.app repack mkv to mp4 or m4v for test, QT not support mkv, IINA may have bug for HEVC mkv video playback.

To summarize I have the current setup now:

1, latest Whatevergreen, Lilu kexts in Clover/kexts/Other (Since 10.13.4 there is no need for this)
2, Inject Intel=false, RadeonDeInit=false (inject Intel=yes and enabled IGPU in BIOS works better, otherwise I got freezes)
3, X2450 and Shiki kexts in Clover/kexts/Other
4, DSDT patches (a) Rename PEGP to GFX0 - 50454750 to 47465830 (b) Rename GFX0 to IGPU - 47465830 to 49475055
5, SMBIOS iMac 14,2.
6, IGPU enabled in BIOS.
7, shikigva=1 boot argument
8, ran this from terminal and rebooted:

defaults write com.apple.coremedia hardwareVideoDecoder force
defaults write com.apple.AppleGVA forceSWDecoder -boolean no
defaults write com.apple.AppleGVA forceATI -boolean yes
sudo update_dyld_shared_cache -force

I got my system frozen when playing videos from one site (not yt). I could not do anything but spotify kept playing in the background. So I'm guessing there is something wrong with my setup. :banghead:
 
Last edited:
To summarize I have the current setup now:

1, latest Whatevergreen, Lilu kexts in Clover/kexts/Other
2, Inject Intel=false, RadeonDeInit=false
3, X2450 and Shiki kexts in Clover/kexts/Other
4, DSDT patches (a) Rename PEGP to GFX0 - 50454750 to 47465830 (b) Rename GFX0 to IGPU - 47465830 to 49475055
5, SMBIOS iMac 18,2
6, IGPU disabled in BIOS
7, shikigva=1 boot argument
8, ran this from terminal and rebooted:

defaults write com.apple.coremedia hardwareVideoDecoder force
defaults write com.apple.AppleGVA forceSWDecoder -boolean no
defaults write com.apple.AppleGVA forceATI -boolean yes
sudo update_dyld_shared_cache -force

I got my system frozen when playing videos from one site (not yt). I could not do anything but spotify kept playing in the background. So I'm guessing there is something wrong with my setup. :banghead:


No need to Rename GFXo to IGPU.

No need for shikigva=1 if you disabled IGPU.

Clover drop tables MCFG.
 

Attachments

  • Screen Shot 2018-01-17 at 19.56.10.png
    Screen Shot 2018-01-17 at 19.56.10.png
    40.5 KB · Views: 159
Yes, pure HEVC decoding but not HEVC encoding. H264 to HEVC transcoding should like attached png.



Need VLC 3 and up for HEVC decoding, HW HEVC decoding not implemented, use QuickTime or IINA for HEVC decoding test.

Edit: use Subler.app repack mkv to mp4 or m4v for test, QT not support mkv, IINA may have bug for HEVC mkv video playback.


I exported the 4K video using quicktime 1080 HVEC.

Is the CPU load normal?
 

Attachments

  • Screen Shot 2018-01-17 at 19.54.20.png
    Screen Shot 2018-01-17 at 19.54.20.png
    194.1 KB · Views: 119
To summarize I have the current setup now:

1, latest Whatevergreen, Lilu kexts in Clover/kexts/Other
2, Inject Intel=false, RadeonDeInit=false
3, X2450 and Shiki kexts in Clover/kexts/Other
4, DSDT patches (a) Rename PEGP to GFX0 - 50454750 to 47465830 (b) Rename GFX0 to IGPU - 47465830 to 49475055
5, SMBIOS iMac 18,2
6, IGPU disabled in BIOS
7, shikigva=1 boot argument
8, ran this from terminal and rebooted:

defaults write com.apple.coremedia hardwareVideoDecoder force
defaults write com.apple.AppleGVA forceSWDecoder -boolean no
defaults write com.apple.AppleGVA forceATI -boolean yes
sudo update_dyld_shared_cache -force

I got my system frozen when playing videos from one site (not yt). I could not do anything but spotify kept playing in the background. So I'm guessing there is something wrong with my setup. :banghead:

Remove or disable shiki.kext and run below from terminal again
sudo update_dyld_shared_cache -force

If issue remain

Try boot arg -rad4200 force back AMDxxxxxx4200.kext, some RX560 may have issue with 10.13.x, some mobos may have issue with iMac 18,x like my ASUS B150 Pro due to AGPM problem, change SMBIOS to iMac 14,2 may help.

Attached is dummy injector X4200.kext.
 

Attachments

  • X4200.kext.zip
    3 KB · Views: 86
I exported the 4K video using quicktime 1080 HVEC.

Is the CPU load normal?

Seems to be implement VCPHEVC rather than AppleGVAHEVCEncoder, it is normal when HEVC to HEVC encoding, can not decoding/encoding at same time, one must be VCPHEVC mode, use OpenGL for encoding or decoding depended on apps.

When H264 to HEVC transcoding, H264 is in HW decoding mode and HEVC is in HW encoding mode.
 
4, DSDT patches (a) Rename PEGP to GFX0 - 50454750 to 47465830 (b) Rename GFX0 to IGPU - 47465830 to 49475055

Rename GFX0 to IGPU first then Rename PEGP to GFX0, if orders reversed then DGPU become IGPU, will cause AGPM issue.
 
What I don't understand, I can play the HEVC Sony Camp Movie just fine with 3.5% CPU load in QuickTime player, but playing the glass demo
https://drive.google.com/uc?export=download&id=0Bxj6TUyM3NwjQTRjTk9Vck1TT00
I get 300% CPU load?
@shuhung: how can I use IntelQuickSync from my connectorless HD530 iGPU for h264(this part works fine, btw) AND reliable HEVC decoding from my amd rx580?
I'm using the whatevergreen/inject intel method. I tried adding the x4250.kext, I've removed shiki, rebuilt the cache but I see no change. 60 fps HEVC camp demo is fine(3% CPU load), glass demo is 300% CPU load.
 
What I don't understand, I can play the HEVC Sony Camp Movie just fine with 3.5% CPU load in QuickTime player, but playing the glass demo
https://drive.google.com/uc?export=download&id=0Bxj6TUyM3NwjQTRjTk9Vck1TT00
I get 300% CPU load?

Glass demo clip is 10 bit HEVC not supported by HD530, need HD630 or RX 4XX/5XX for 10 bit HEVC video playback.

how can I use IntelQuickSync from my connectorless HD530 iGPU for h264(this part works fine, btw) AND reliable HEVC decoding from my amd rx580?

No, only one GVA Decoder/Encoder is allowed, enable IQSV then AMD GVA support will be auto disabled, but you can use shikigva=1 as a GVA on/off switch, from Clover boot option, type shikigva=1at system boot up, it will disable IQSV and enable AMD GVA support.

I'm using the whatevergreen/inject intel method. I tried adding the x4250.kext, I've removed shiki, rebuilt the cache but I see no change. 60 fps HEVC camp demo is fine(3% CPU load), glass demo is 300% CPU load.

Disable IQSV and test again, CPU usage should round 6~7%.
 
Sorry for not replying. My Hackintosh just broke with APFS boot disk corruption.

I reported it here: https://www.tonymacx86.com/threads/apfs-boot-disk-corruption.243415/

If anybody can help with it, I would really appreciate that.

As soon as I solve this issue, I will report back once I make the changes recommended.

Thank you!

Update: I re-installed it with HFS+.
 
Last edited:
Glass demo clip is 10 bit HEVC not supported by HD530, need HD630 or RX 4XX/5XX for 10 bit HEVC video playback.



No, only one GVA Decoder/Encoder is allowed, enable IQSV then AMD GVA support will be auto disabled, but you can use shikigva=1 as a GVA on/off switch, from Clover boot option, type shikigva=1at system boot up, it will disable IQSV and enable AMD GVA support.



Disable IQSV and test again, CPU usage should round 6~7%.

Please remind me of the drawback(s) of using the RX480 for h264 and HEVC and ditching the iGPU completely? Can't encode and decode at the same time? Bad quality output?
 
Back
Top