Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intel QuickSync not working #18

Closed
osy opened this issue Jul 26, 2019 · 14 comments
Closed

Intel QuickSync not working #18

osy opened this issue Jul 26, 2019 · 14 comments
Labels
graphics Graphics/GPU issues hardware Hardware issues

Comments

@osy
Copy link
Owner

osy commented Jul 26, 2019

In /System/Library/PrivateFrameworks/AppleGVA.framework/Resources/Info.plist, under System Support, the entry for Mac-7BA5B2DFE22DDD8C does not contain forceOfflineRenderer. On a real Macmini8,1 there is no dGPU, so this is fine but we need offline rendering.

Changing the model to iMac18,2 or iMac18,3 works but causes another issue: the USB-C in DP mode no longer output video.

Another solution is to use WhateverGreen's Shiki with boot-arg shikigva=32 shiki-id=Mac-BE088AF8C5EB4FA2. This works but currently, WG is incompatible with Polaris22Fixup until osy/Polaris22Fixup#3 is resolved. Additionally, WG has a whitelist system so QuickSync will only work with the apps that are whitelisted, which is not a good solution imo.

We have to either resolve the USB-C DP issues with board-id Mac-BE088AF8C5EB4FA2 or somehow fake the forceOfflineRenderer check in AppleGVA without WG.

@osy osy added the hardware Hardware issues label Jul 26, 2019
@dongyj1987
Copy link

So this is the reason why my Ultrafine 5K does not work.

@osy
Copy link
Owner Author

osy commented Jul 27, 2019

@dongyj1987 Which part? The quicksync or the iMac18,2 spoofing? You can try the WG workaround I talked about, but you have to remove Polaris22fixup.kext first. This will cause the graphics issue to show up but you can confirm if quicksync is the issue.

@dongyj1987
Copy link

@dongyj1987 Which part? The quicksync or the iMac18,2 spoofing? You can try the WG workaround I talked about, but you have to remove Polaris22fixup.kext first. This will cause the graphics issue to show up but you can confirm if quicksync is the issue.

The quicksync, cause it's Mac mini spoofing now. I will try WG while removing Polaris22fixup like you said and see what will happen. Thanks a lot!

@piotrasd
Copy link

piotrasd commented Aug 24, 2019

I can confirm changing smbios to iMac18,3 activating QuickSync (without WG), tested with Safari (youtube) QuickTime Recording, Kodi, VideoProc, basically at the moment for Macmini8,1 there is no any GPU acceleration for Enc/dec. Im just wonder why nothing work through AMD GPU ?
Zrzut ekranu 2019-08-24 o 19 50 05
Zrzut ekranu 2019-08-24 o 19 51 25

Good for testing use Intel Power Gadget tool, at least for Intel GPU - showing if something going through GPU, iStats will no show any load. also Kodi showing Procesing info if we press O during playback.

Zrzut ekranu 2019-08-24 o 19 53 40

update: only chrome still not using HW acceleration :( over Intel or AMD. I tried force him in settings
"about:flags" but still 4k running SW (I know chrome using VP9 mostly but still should work)

@osy
Copy link
Owner Author

osy commented Aug 24, 2019

Im just wonder why nothing work through AMD GPU ?

Apple's drivers does not support video encoding/other features on many AMD chipsets including Baffin (which we're spoofing). I think they've added some support in 10.15 but I doubt it applies to older chipsets.

@piotrasd
Copy link

It has - apple using Video Toolbox which suppose to work even Buffin at least for H.264 and HEVC
https://developer.apple.com/documentation/videotoolbox
Anyway I will deep more, check what the story, people with RX460 (Polaris Buffin family)and others they got full acceleration. For me target is FXCP.

And solve mistery of VP9

@osy
Copy link
Owner Author

osy commented Aug 24, 2019

If so then it's probably some config in AppleGVA. Play around with the WG shiki settings I guess.

@slimx
Copy link

slimx commented Aug 25, 2019

dos change PEGP to GFX0 , change HECI to IMEI patch and dAGPM.kext necessary to active quicksync?

@osy
Copy link
Owner Author

osy commented Aug 25, 2019

They are not necessary.

@piotrasd
Copy link

piotrasd commented Aug 25, 2019

@slimx just enough change SMBIOS to Mac18,3 and you will get. Today I got info to get HW dec/enc HEVC with AMD best to change on iMacPro1,1

"Only SMBIOS iMacPro1,1 support AMD GVA H264/HEVC encoder, no other options on latest macOS."
(but we suppose turn off intelGPU or change AMD on GFX0, today I will more test and confirm)
for some reason they removed for others options after 10.14.4

@osy86 maybe config of iMacPro1,1 will work with USB-C/DP etc ?

@piotrasd
Copy link

piotrasd commented Aug 31, 2019

with SMBIOS iMac19,2 im getting both HW acceleration, not everywhere. but safari, iTunes using QSV and FCP AMD ... so for me perfect.

BruceX Test - 5K.fcpxml.zip I attached testing project file for FCP where you can easily check load of GPU during rendering and you can compare time.
Zrzut ekranu 2019-08-31 o 13 37 51

@osy
Copy link
Owner Author

osy commented Sep 21, 2019

Closing as the original Intel QuickSync issue was resolved. Please open a new issue to discuss AMD HW acceleration issues.

@osy osy closed this as completed Sep 21, 2019
@piotrasd
Copy link

Release 2.0 didn't work at least for Chrome and safari, clean install with WG (default config nothing changed)

@osy osy mentioned this issue Oct 6, 2019
@osy osy added the graphics Graphics/GPU issues label Dec 21, 2019
@keatliang2005
Copy link
Contributor

keatliang2005 commented Jul 25, 2020

@osy86 @piotrasd

hi there,

Quick questions here Quicktime player to encode videos. seems like it's not using quick sync ?
i trying to use handbrake to encode with quick sync, it crash.

This also including video decoding on h264, on quick time player is that known limitation of this build ?

i am using latest clean new install
OS: 10.15.6
HacMini: v2.10

update: chrome watch h264 is not using quick sync too

Screenshot 2020-07-25 at 8 45 26 PM

chrome://gpu results

Screenshot 2020-07-25 at 8 46 04 PM
Screenshot 2020-07-25 at 8 46 16 PM
Screenshot 2020-07-25 at 8 46 28 PM
Screenshot 2020-07-25 at 8 46 42 PM

Update: 26 Jul 2020

I decided mount EFI folder, and delete all, and reinstall latest hacmini v2.10. it seems resolve the issues.

i did the same upgrade/re-install couple time no effect, delete the original EFI folder on boot drive and reinstall did the trick for me

Screenshot 2020-07-26 at 1 27 56 PM

here is my option

Screenshot 2020-07-26 at 1 12 47 PM

thanks @osy86 for the great work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphics Graphics/GPU issues hardware Hardware issues
Projects
None yet
Development

No branches or pull requests

5 participants