Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
The first post of this thread is a WikiPost and can be edited by anyone with the appropiate permissions. Your edits will be public.
I wish there's a way at least for one single Format, in that case I could use proxy or transcode all of my videos to that format before importing to Premier pro or record with that format if possible.

This is my system report in high sierra with Xeon x5690 and RX580

If this capability is locked why this test shows support up to 8K 61FPS in Metal?

View attachment 941851
AFAIK, only decoding acceleration can be enabled with 10.13.6 and RX 580, see the first post FAQ, not encoding.

BTW, you are failing to understand how the VideoToolbox API acceleration works, AMD hardware acceleration is just a way to say video compression/decompression using VideoToolbox API running on AMD UVD/VCE/UVC ASICs. AMD UVD/VCE hardware acceleration is not METAL at all, it's a pair of dedicated ASICs (UVD/VCE), or just one unified ASIC (UVC) depending on the generation, in the GPU and these ASICs don't support METAL.

An app that uses METAL for video acceleration, like FCPX, bypass the VideoToolbox API and uses the GPU compute units directly. Some apps use both METAL and VideoToolbox, for different things.
 
Last edited:
AFAIK, only decoding acceleration can be enabled with 10.13.6 and RX 580, see the first post FAQ, not encoding.

BTW, you are failing to understand how the VideoToolbox API acceleration works, AMD hardware acceleration is just a way to say video compression/decompression using VideoToolbox API running on AMD UVD/VCE/UVC ASICs. AMD UVD/VCE hardware acceleration is not METAL at all, it's a pair of dedicated ASICs (UVD/VCE), or just one unified ASIC (UVC) depending on the generation, in the GPU and these ASICs don't support METAL.

An app that uses METAL for video acceleration, like FCPX, bypass the VideoToolbox API and uses the GPU compute units directly. Some apps use both METAL and VideoToolbox, for different things.
thanks again that was very helpful
If I remember correctly there was a way to install macOS on MacPro 5,1 like a mackintosh machine with clover , ... and somehow change the name of the system so macOS think it is iMac or any other Mac Computer that supports HWA with RX580.
 
thanks again that was very helpful
If I remember correctly there was a way to install macOS on MacPro 5,1 like a mackintosh machine with clover , ... and somehow change the name of the system so macOS think it is iMac or any other Mac Computer that supports HWA with RX580.
This whole thread is about how to make HWAccel work. Did you read post it and the associated links yet?
 
  • Like
Reactions: MIKX
This whole thread is about how to make HWAccel work. Did you read post it and the associated links yet?

I read the whole thread and thank to your guidance and @tsialex , I managed to Activate it fully on Mojave, but Mojave caused so many problems in my system and after searching in this forum and asking for help no one couldn't detect the problem or offer a solution, so I had no choice but to go back to High Sierra which works for my rock solid except for HWA.

I'm after any solution any single way to activate HWA for Mac Pro 5,1 with High Sierra and RX580 or RX570
but seems every one did it with Mojave+ OS
 
I upgraded from OC 0.5.9 to OC 0.6.0 using the .zip file from @h9826790 at post 1314 (thanks again!):

Now I also see the (an?) EFI partition among the volumes available to boot from at the Open Core boot screen. It wasn't like this before. Is there away to hide that partition from view? Just a minor thing, but…

Edit:

Change this to ”true” in the config.plist perhaps?

Code:
<key>HideAuxiliary</key>
<false/>

I'm also wondering if there's a way to change the boot disk from within MacOS, i.e. so one doesn't have to sit and wait for the boot picker to come up and possibly missing it because of the timeout? Sorry if it's been covered before, I tried to look around for it.
 
Last edited:
Now I also see the (an?) EFI partition among the volumes available to boot from at the Open Core boot screen.

Sounds like you have an extra instance of OpenCore.

I'm also wondering if ther'es a way to change the boot disk from within MacOS, i.e. so one doesn't have to sit and wait for the boot picker to come up and possibly missing it because of the timeout?

With RequestBootVarRouting enabled, OC will respect the selection in System Preferences > Startup Disk. You can also hide the picker by setting ShowPicker to false.
 
  • Like
Reactions: star-affinity
I upgraded from OC 0.5.9 to OC 0.6.0 using the .zip file from @h9826790 at post 1314 (thanks again!):

Now I also see the (an?) EFI partition among the volumes available to boot from at the Open Core boot screen. It wasn't like this before. Is there away to hide that partition from view? Just a minor thing, but…

Edit:

Change this to ”true” in the config.plist perhaps?

Code:
<key>HideAuxiliary</key>
<false/>

I'm also wondering if ther'es a way to change the boot disk from within MacOS, i.e. so one doesn't have to sit and wait for the boot picker to come up and possibly missing it because of the timeout? Sorry if it's been covered before, I tried to look around for it.
Try select your default boot drive in System Preferences -> Startup disk.
 
Try select your default boot drive in System Preferences -> Startup disk.

Thanks, but wouldn't that bypass Open Core altogether?
I have Open Core installed on a SATA hard drive, since my main MacOS installation is on a NVMe drive. I've tried to change the the ”HideAuxiliary” key to ”true” now. I read somewhere that it would hide EFI partitions from the boot picker view, but I haven't been able to verify (at work now, so will look at it when back home).
 
Thanks, but wouldn't that bypass Open Core altogether?
No. It's configured to handle that.

Few users reported that after to 0.6, OC boot picker shows the EFI option (it's the OpenCore itself). In general, the hideself function should be on by default. For unknown reason, the EFI options still shows up. Select the default boot drive in System Preferences -> startup disk will set the default boot drive in Boot Picker, but not bypass it. This action seems can also effectively enable that hideself again.
 
  • Like
Reactions: star-affinity
No. It's configured to handle that.

Few users reported that after to 0.6, OC boot picker shows the EFI option (it's the OpenCore itself). In general, the hideself function should be on by default. For unknown reason, the EFI options still shows up. Select the default boot drive in System Preferences -> startup disk will set the default boot drive in Boot Picker, but not bypass it. This action seems can also effectively enable that hideself again.
Aha, good to know!

Does that mean I can also use commands such as these to select my Windows 10 drive as a one time boot drive upon the next restart without messing up Open Core?

Code:
sudo bless -device /dev/disk0s2 -mount /Volumes/Windows\ 10/ -setBoot -nextonly

Or use the convenient tool Boot Manager to temporarily chance boot drive from within MacOS (which I've been using before going to Open Core). It won't mess up Open Core?

 
Last edited:
Aha, good to know!

Does that mean I can also use commands such as these to select my Windows 10 drive as a one time boot drive upon the next restart without messing up Open Core?

Code:
sudo bless -device /dev/disk0s2 -mount /Volumes/Windows\ 10/ -setBoot -nextonly

Or use this tool to temporarily chance boot drive from within MacOS (which I've been using before going to Open Core). It won't mess up Open Core?
Don't use bless command.

But you can select Windows drive in System Preference -> Startup disk.

You can also select macOS in Bootcamp manager in Windows.

Anyway, IMO, use the Boot Picker is easier.
 
  • Like
Reactions: star-affinity
Don't use bless command.

But you can select Windows drive in System Preference -> Startup disk.

You can also select macOS in Bootcamp manager in Windows.

Anyway, IMO, use the Boot Picker is easier.
OK, thank you for the info!

I have been having trouble changing the startup disk to Windows in System Preferences -> Startup disk. If I do that it stays on the Windows drive and I was not able to get back into MacOS despite chaning to its drive in the BootCamp settings in Windows. But maybe this won't be a problem now when I have Open Core since I'll always see the bootable drives from the Boot Picker? 🤔

Of course I can use the Boot Picker, it's just that I like being able to restart the computer and then just leave it and do something else while it reboots into the other OS. Having to ”hang around” and wait the time it takes for the boot picker is bit inconvenient. No major thing, though. :)
 
VP9 source code for the latest Big Sur Beta:
 
[For existing users, you can download the latest OpenCore 0.6.0 package at post #1314 for update]

Full HWAccel achieved now!
View attachment 892675

Everything are covered in the OpenCore threads. The step by step tutorial is at here, but I strongly recommend you go through the whole thread before you do anything.


The same method works in both Mojave and Catalina. HOWEVER, for dual processor cMP user, please stick with Mojave at this moment. (Update: please stick to Mojave for ALL who want HWAccel. CMMChris advised Apple removed HEVC HWAccel for all Polaris GPU in the latest Catalina beta. Which means you may not upgrade the OS to get any security fix, unless this is an error in beta. Stay with Mojave, get HWAccel, and keep your OS up to date seems will be a better choice at this moment)
View attachment 897287

Sidecar (and AirPlay Display) should also work, but I have no iPad to test it yet. The latest config.plist in post #594 and #1314 will now keep the cMP ident as 5,1. Therefore, will NOT activate Sidecar by default now.

------ The procedure below is depreciated, just keep in this post as a record (but I will still maintain the FAQ section to keep that up to date. Please read through the FAQ before you ask anything. Any question that already covered in FAQ won't be answered by me.). For those who don't need HEVC hardware encode, and prefer not to install OpenCore. You may still follow the procedure below to activate HWAccel ------

10.14.5 is now official. And I can confirm that AMD card users (Polaris or above) can enjoy H264 hardware encode / H264 hardware decode / and HEVC hardware decode.
View attachment 836830

The procedure is as follow: (please read through the entire Q&A section BEFORE you do anything. You should know how to recover, or may need to use alternate procedure, etc)

1) Keep SIP disabled

2) Download Lilu.kext

3) Download WhateverGreen.kext

4) open Lilu.kext (right click -> show package contents)

5) enter Contents

6) create folder "Plugins" (N.B. This folder is INSIDE Contents, please do NOT miss step 5)
View attachment 836833

7) Copy the WhateverGreen.kext into Plugins

8) Copy the whole modded Lilu kext to /Library⁩/Extensions/

9) Open terminal

10) Enter
Code:
sudo chmod -R 755 /Library/Extensions/Lilu.kext

11) Enter
Code:
sudo chown -R root:wheel /Library/Extensions/Lilu.kext

12) Enter
Code:
sudo touch /Library/Extensions

13) Enter
Code:
sudo kextcache -update-volume /
(you may get some strange return with this command, don't worry about it)

14) Enter
Code:
sudo nvram boot-args="shikigva=96 shiki-id=Mac-7BA5B2D9E42DDD94"
For Catalina, you may need to enter the no compat check boot argument as well, otherwise, you may stuck at the no boot situation until you fix the boot argument in recovery partition.

15) Reboot


FAQ, please read through this section BEFORE you ask. I won’t answer anything that already covered in this section.

Q1: Is this safe?
A: Tested since 10.14.5 beta 4, so far, no system damaged by this mod. (Update: OpenCore may write something into the cMP's firmware. So, if you want to stay safe, avoid OpenCore. And only use Lilu + WhareverGreen, or hex edit method)

Q2: Is there any down side?
A: Yes, for Lilu or hex edit method, iTunes, TV+, and Safari Netflix DRM streaming may not work, but fully download DRM movie should not be affected. And Netflix on Chromium base browsers (Chrome, Brave, Edge, etc) are OK.

DRM streaming can work flawlessly with the OpenCore method.

Q3: Any other known issue?
A: Photos app crash if HDMIAudio.kext is also installed. Besides, few more users reported system freeze. It seems only Polaris GPU is affected e.g. RX580. So far, all freeze only occur in Apple apps. e.g. FCPX, Photos, Compressor, etc. 3rd party apps such as PP, DV, VideoProc are not affected. However, Polaris GPU hwaccel seems perfectly stable in 10.14.6 beta by hex editing the AppleGVA file. Beside, Adobe Media Encoder seems will cause the video engine stall. Not system freeze / crash, but the video engine simply like stop working, perform extremely bad. Normal performance can only recover by reboot. (Update: 10.14.6 official release seems fixed most of these issue. At least, I have no way to reproduce any freeze with my RX580)

Q4: If my system crash after the mod, how to fix it?
A: For Lilu / OpenCore 0.5.5 method, NVRAM reset will remove the boot argument, and disable the kexts / OpenCore. So, will effective revert your system back to the original state. Once your system boot again, you can remove the kext / OpenCore.

For Hex edit method, I ran lots of tests, no way to crash the system. But if there is any instability, please restore the original file from your backup.

For OpenCore 0.5.6, you have to re-mount the EFI partition -> remove the BOOT and OC folder -> reset NVRAM

Q5: What's the benefit?
A: Able to play some very demanding HEVC video (e.g. this one)
https://4kmedia.org/sony-swordsmith-hdr-uhd-4k-demo/

This is how my cMP can play this video now. Smooth playback with very low CPU usage (please use a browser that support VP9 to watch all the following Youtube videos in 4k, otherwise, you may not able to read the details)

Able to edit H264 directly smoothly, no need to transcode to ProRes anymore, greatly reduce the storage speed and capacity requirement. Most likely can improve productivity as well

Able to edit HEVC directly smoothly, no need to transcode to ProRes anymore, greatly reduce the storage speed and capacity requirement. Most likely can improve productivity as well

Can greatly improve H264 export speed with low CPU usage (depends on your CPU / GPU spec)

Able to record the screen at 4k smoothly. As you can see from the above link. My cMP now can do those stuff and still record the screen smoothly at the same time.

Able to play VP9 video smoothly. My cMP now can play this 8K 24FPS youtube video with zero frame drop. (VP9 hardware decode is NOT supported at all in macOS)

Q6: Can this work in 10.14.4 or before?
A: One user reported that latest 10.13.6 with Vega also work with Lilu mehtod. But RX580 will cause GPURestart fault, which freeze the display and make the OS unusable. (update: users reported hardware decode works, but H264 hardware encode will cause the crash)

Q7: Can this work in 10.15?
A: Not as good as 10.14. Only Lilu method, or OpenCore method work. Also, in 10.15.2, Polaris (e.g. RX580) HEVC HWAccel support is removed by Apple (WhateverGreen should fix this Polaris supportability issue. But I haven’t test it personally)

Q8: Can this work for Nvidia GPU?
A: NO

Q9: Can this work for flashed 7950 etc?
A: I don't know. Please test it for me. (Update: The answer is NO, thanks bazza5938 to perform the test)

Q10: Which software can benefit from this mod?
A: This will provide hardware acceleration at system level. So far, all my tested software works (e.g. FCPX, iMovie, Handbrake, Compressor, VideoProc, DVDFab, DV, AE, PP, FFMpeg, QuickTime Player, VLC, IINA......)

Q11: If I do a NVRAM reset due to other reason, how to regain these functions?
A: For Lilu method, repeat step 14 and reboot.

Hex edit method / OpenCore 0.5.6 (post #1314) is not affected.

For OpenCore 0.5.5 (in post #594), depends on your setup, you may need to re-bless to boot via OpenCore again.

Q12: What's the recommended GPU?
A: RX560, RX580, Vega 56, Vega 64, Vega FE. As long as that card can work on cMP, brand / model doesn’t really matter (Update: for this particular purpose, Vega is definitely better than Polaris card. There is zero crash / freeze report from Vega users yet).

Q13: Why not recommend the Radeon VII or RX570, etc.
A: AFAIK, all Polaris, Vega, Navi GPU works, I just not sure how mature the overall support is. (Update: I upgraded my GPU to Radeon VII, perfectly stable, and hardware encoding is about 100% faster than RX580. Navi's HWAccel also confirmed can be activated.)

Q14: Is this QuickSync?
A: NO, QuickSync is the hardware acceleration for Intel iGPU, not the generic term for GPU video hardware acceleration. AMD GPU use UVD (Unified Video Decoder) for decoding, and VCE (Video Coding Engine) for encoding. All this will be controlled by VideoToolBox automatically in macOS, virtually transparent to users. It's the same concept as QuickSync, but not QuickSync.

Q15: I can see that my GPU is working in Compressor before this mod (on a cMP). Is that mean I already have hardware acceleration?
A: NO, we are talking about H264 / HEVC hardware acceleration here. Not the general compute hardware acceleration. They are completely different.

Q16: How's the quality of the hardware encoded video?
A: Not as good as software encoder in general. But if at high bitrate, the difference isn't that noticeable.

Q17: When will we able to get HEVC encoding as well?
A: I don't know. But you can always boot to Windows and use HEVC hardware encode. (Update: FULL HWAccel including HEVC encoding can also be achieved by using OpenCore. Not sure how safe, but it works stably on my cMP)

Q18: How much improvement can I expect?
A: Well, depends on usage. But a quick iMovie 4K H264 export test shows a Vega 64 can reduce the export time from 6:19 to 1:25, which means reduced the export time by ~77% (on a dual X5680 cMP).

Q19: Why VideoProc shows no HEVC decode after the mod?
A: I don't know why, but this is normal in this case. My recommendation is to download demo HEVC video from the above link, and play it via QuickTime (or simply via Finder preview). As long as the CPU usage only stay around 20% (but not 800%), that means HEVC decoding is working properly.

For those who use OpenCore method, you should able to see HEVC HWAccel avail. If not there, please click the little reload icon.

Q20: Should I install the newer version of Lilu and WhateverGreen?
A: NO. Despite the newer version can work, but provide no extra function in this case, and I have no idea if the newer one has poorer stability. If I found a better way / kext to use. I will update the post accordingly. (Update: For Catalina, please install Lilu 1.4.0 and WhateverGreen 1.3.5. And so far, all newer Lilu and WEG only provide better result due to bug fix. Users should be OK to install the latest version)

Q21: I experienced system freeze, Console log shows "GPU Restart" event, what should I do?
A: PRAM reset will bring your system back to normal. If you are with Polaris GPU (RX560, RX570, RX580, etc), it seems some people are affected by this bug. What I found is an alternate method by directly hex edit the AppleGVA file seems more stable for these GPUs. Initial test shows very safe to do so, even I completely destroy the AppleGVA file, the OS can still boot to desktop. If you prefer to go this route, please make sure you know how to restore the file (or even completely recover from an unbootable OS). The info is at post #205. (update: 10.14.6 shows extremely good stability, highly recommended for RX580 users)

Q22: How do I know if hardware acceleration is really working?
A: My suggestion is by using Terminal. Detail info in post #273. You may also use OpenGL Driver Monitor to observe the UVD / VCE activities (link).

Q23: Can I use this mod with MVC flashed RX580?
A: I can't test it, and no report yet, but should work. Since this mod won't touch the ROM, safe to try anyway.

Q24: Is it possible to turn OFF hwaccel without reboot. So that I can enjoy DRM streaming anytime?
A: Only the alternate method allow ON/OFF on the fly. If you don't want to use terminal / Finder to do that every time, you can make two simple apps to do that, procedures at here. (Update: My OpenCore package should allow you to play DRM streaming video by default)

Q25: Does background rendering still works in FCPX?
A: Background rendering still works for both methods. This is completely independent to hwaccel. I turned that off in the above demo is just to illustrate the real time timeline editing performance. Not because of it can't work.

Q26: I tried the hex edit method many many times, it doesn't work, but I am sure I did everything right. What should I do?
A: May be you should try open a new user profile, and see if it help (reference link)

Q27: Why the "Graphics" in VideoProc HWAccel page shows N/A?
A: No idea, but it's just a cosmetic error in this case. (Update: It seems VideoProc looking for the key word "AMD". e.g. If the card ident as AMD Radeon VII, VideoProc can show it properly. But if the card ident as Radeon VII, then VideoProc can't show its name)

Q28: Why VideoProc shows that I am use "Intel "HWAccel when converting videos?
A: Also no idea, but again, it's just a cosmetic error in this case.

Q29: Why VideoProc shows nothing activated but everything seems working as expected?
A: As long as you can see this tick, which mean HWAccel is activated. From my observation, this tick always change automatically.
View attachment 891504

For the Hardware Info Detected page, please click the little reload icon in order to let VideoProc to show you the latest status.
View attachment 891505
Q30: will this work on 6,1?
A: No. None of the 6,1 GPU belongs to Polaris or higher.

Q31: will this work on 3,1?
A Yes (link)
i try it but now stuck on logo APple, how a sollution?
mojaveMacjournal Format HDDD
 
@h9826790 Hi,
I upgraded from OC 0.5.9 to OC 0.6.0 using your .zip file from post 1314. Only thing I changed was the UIScale from AQ== to Ag==

Problem - when I restart only internal drives are visible (including 2x NVMe) but no external drives show up (2 x Sonnet USB3 Cards). They are visible in DiskUtility and can be mounted but this must be done every time I restart. I have not made any other changes or installed any other software. Is there something in OC that is doing this by any chance and that is addressable via the config file? tia

*edit* Also USB drives no longer automatically mount when plugged in, whether linked to Sonnet card or directly into built in MP USB ports

*edit 2* reverted to my previous 0.59 EFI (backup). It soon became very obvious there was a lot more wrong than just drives not mounting - no menu clock (couldn't click the 'on' tickbox!), some Apple apps just quit on launch (Books, Music, Photo)...just too much weirdness to try and solve now
 
Last edited:
@h9826790 Hi,
I upgraded from OC 0.5.9 to OC 0.6.0 using your .zip file from post 1314. Only thing I changed was the UIScale from AQ== to Ag==

Problem - when I restart only internal drives are visible (including 2x NVMe) but no external drives show up (2 x Sonnet USB3 Cards). They are visible in DiskUtility and can be mounted but this must be done every time I restart. I have not made any other changes or installed any other software. Is there something in OC that is doing this by any chance and that is addressable via the config file? tia

*edit* Also USB drives no longer automatically mount when plugged in, whether linked to Sonnet card or directly into built in MP USB ports

*edit 2* reverted to my previous 0.59 EFI (backup). It soon became very obvious there was a lot more wrong than just drives not mounting - no menu clock (couldn't click the 'on' tickbox!), some Apple apps just quit on launch (Books, Music, Photo)...just too much weirdness to try and solve now
If you reverted to 0.5.9 still has those issues, then apparently not OC related.

My recommendation is to do the usual stuff first. e.g. NVRAM reset / SMC reset, or re-install the MacOS to fix any broken system file (no need to format the drive, just cover on top is fine).
 
If you reverted to 0.5.9 still has those issues, then apparently not OC related.

No, its definitely OC related, and specifically to your new bundle version (0.6) in this thread (which I used as is except for the UIScale thing). Everything is now back to normal function after I reverted to my EFI folder backup and restarted.

My phrasing was a bit confusing there, sorry. I meant that I reverted back to the 0.59 version because I found more and more weird problems occurring.
 
No, its definitely OC related, and specifically to your new bundle version (0.6) in this thread (which I used as is except for the UIScale thing). Everything is now back to normal function after I reverted to my EFI folder backup and restarted.

My phrasing was a bit confusing there, sorry. I meant that I reverted back to the 0.59 version because I found more and more weird problems occurring.
May be I misread your last post. Anyway, if 0.5.9 works, please stay at 0.5.9
 
i dont know
i dont try, now stuck on logo apple :(
Do you have any backup boot drive?

Anyway, you should able to boot to Recovery Partition by holding Command + R, then disabled / remove the problematic OC.

You may also try boot to safe mode. TBH, I never try this with OC installed. May or may not work. But nothing hurt to try, just hold Shift to boot.
 
Everything's working great for me, with the exception of dirty graphics within the boot loader. Over the last 5 weeks, I've had clean images only once, and I don't know how to replicate it because it was completely random. Any help with this would be mucho appreciated :apple:

MacPro 4,1 --> 5,1 @ Dual 3.5 GHz 6-Core Intel Xeon | Sapphire RX580 | OS X Mojave |

IMG_4118.jpeg
 

Attachments

  • IMG_4118.jpeg
    IMG_4118.jpeg
    730.1 KB · Views: 138
  • Screen Shot 2020-08-14 at 10.20.15 AM.png
    Screen Shot 2020-08-14 at 10.20.15 AM.png
    139.4 KB · Views: 116
  • Screen Shot 2020-08-14 at 10.21.08 AM.png
    Screen Shot 2020-08-14 at 10.21.08 AM.png
    60.1 KB · Views: 124
Do you have any backup boot drive?

Anyway, you should able to boot to Recovery Partition by holding Command + R, then disabled / remove the problematic OC.

You may also try boot to safe mode. TBH, I never try this with OC installed. May or may not work. But nothing hurt to try, just hold Shift to boot.
ok brother
thanks
problem solve
 
  • Like
Reactions: h9826790
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.