[Solved]Fixes to Get Full Acceleration on Intel HD Graphics in iMac 17.1

Discussion in 'Graphics' started by jktaurus8, Mar 6, 2017.

  1. wattmatters

    wattmatters

    Joined:
    May 13, 2016
    Messages:
    26
    Mobo:
    GIGABYTE GA-Z170-D3H F22a
    CPU:
    Intel i5 6600
    Graphics:
    Intel HD Graphics 530
    Mac:
    iMac
    Mobile Phone:
    Android, Windows Phone
    Oct 6, 2017 at 3:41 AM #261
    wattmatters

    wattmatters

    Joined:
    May 13, 2016
    Messages:
    26
    Mobo:
    GIGABYTE GA-Z170-D3H F22a
    CPU:
    Intel i5 6600
    Graphics:
    Intel HD Graphics 530
    Mac:
    iMac
    Mobile Phone:
    Android, Windows Phone
    Please elaborate the use of View attachment 282115
     
    Last edited: Oct 6, 2017
  2. umran23

    umran23

    Joined:
    May 22, 2011
    Messages:
    121
    Mobo:
    ASUS ROG MAXIMUS VIII GENE LGA 1151 Intel Z170
    CPU:
    Intel i7 6700
    Graphics:
    MSI GTX 1070 Gaming X
    Mobile Phone:
    iOS
    Oct 6, 2017 at 1:29 PM #262
    umran23

    umran23

    Joined:
    May 22, 2011
    Messages:
    121
    Mobo:
    ASUS ROG MAXIMUS VIII GENE LGA 1151 Intel Z170
    CPU:
    Intel i7 6700
    Graphics:
    MSI GTX 1070 Gaming X
    Mobile Phone:
    iOS
    So the latest Lilu 1.2.0 and its Plugins- Shiki & NvidiaGraphicsFixup allow Skylake/Kabylake + Pascal GPU get almost full acceleration, I tested with High bitrate mp4 video in Quicktime & desktop screen recording via QT. Both resulted in low cpu usage and using intel iGPU for decode/encode. According to Lilu developer, I should be getting a successful VDAchecker message, but I get this:
    Code (Text):
    GVA info: Successfully connected to the Intel plugin, offline Gen9
    AVDCreateGPUAccelerator: Error loading GPU renderer
    VDADecoderCreate failed. err: -12473
    An error was returned by the decoder layer. This may happen for example because of bitstream/data errors during a decode operation. This error may also be returned from VDADecoderCreate when hardware decoder resources are available on the system but currently in use by another process.
    VDADecoderCreate failed. err: -12473
    You guys can check that too if you getting proper HW decoding outside Quicktime. I am attaching a zip file with the latest kext as these were only available in source code, so I compiled them. Do remember to add shikigva=4 (This bootflag is only for Skylake & newer Cpus) as custom boot flag in config.plist. Have Inject Intel=True and a connecter-less ig-platform id is used, for my HD 530, I had to use "0x19120001" and enabled it in BIOS as multi monitor with >=64mb DVMT preallocate memory.

    Here are my results:

    DECODING:

    Screen Shot 2017-10-04 at 11.13.06 PM.png

    ENCODING:

    Screen Shot 2017-10-05 at 7.15.27 PM.png

    Youtube in safari still shows VTDecoderXPCService, which I believe is used for CPU SW acceleration rather than HW. But usage is quite low there.
     

    Attached Files:

    Last edited: Oct 6, 2017
  3. pastrychef

    pastrychef Moderator

    Joined:
    May 29, 2013
    Messages:
    2,062
    Mobo:
    Asus Maximus VIII Gene Z170
    CPU:
    i7-7700K @ 5.1GHz
    Graphics:
    Gigabyte GTX 1080
    Mac:
    Mac Pro
    Classic Mac:
    Power Mac
    Mobile Phone:
    iOS
    Oct 6, 2017 at 2:28 PM #263
    pastrychef

    pastrychef Moderator

    Joined:
    May 29, 2013
    Messages:
    2,062
    Mobo:
    Asus Maximus VIII Gene Z170
    CPU:
    i7-7700K @ 5.1GHz
    Graphics:
    Gigabyte GTX 1080
    Mac:
    Mac Pro
    Classic Mac:
    Power Mac
    Mobile Phone:
    iOS
    Hi. Have you tried with High Sierra? I had it working with Sierra but I think the latest Supplemental Update broke it.
     
  4. iamsteven

    iamsteven

    Joined:
    Jul 28, 2012
    Messages:
    8
    Mobo:
    ASUS H170 PRO GAMING
    CPU:
    Intel Core i5-6500
    Graphics:
    ASUS GeForce GTX 1060 6GB
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Oct 6, 2017 at 3:06 PM #264
    iamsteven

    iamsteven

    Joined:
    Jul 28, 2012
    Messages:
    8
    Mobo:
    ASUS H170 PRO GAMING
    CPU:
    Intel Core i5-6500
    Graphics:
    ASUS GeForce GTX 1060 6GB
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    My High Sierra build without Supp. Update doesn't have QuickSync either
     
  5. Emilio Gonzalez

    Emilio Gonzalez

    Joined:
    Jun 29, 2011
    Messages:
    37
    Mobo:
    GA-Z270X-UD5
    CPU:
    Core i7-7700K
    Graphics:
    GTX 1080 Ti 11 GB
    Mac:
    MacBook Air, Mac mini
    Mobile Phone:
    iOS
    Oct 6, 2017 at 3:53 PM #265
    Emilio Gonzalez

    Emilio Gonzalez

    Joined:
    Jun 29, 2011
    Messages:
    37
    Mobo:
    GA-Z270X-UD5
    CPU:
    Core i7-7700K
    Graphics:
    GTX 1080 Ti 11 GB
    Mac:
    MacBook Air, Mac mini
    Mobile Phone:
    iOS
    Why are you using the connectorless ig platform? Do you have a discrete graphic card? If it is a Nvidia card it will not pass in the vdadecoder test. In the shiki github page they have a closed tread in this subject. I think that it could work in High Sierra since Nvidia fixes some problems with the drivers (NVWebDriverLibValFix.kext is no longer necessary). I think i will update my system after the Nvidia driver of the supplemental upgrade is released
     
    Last edited by a moderator: Oct 6, 2017
  6. umran23

    umran23

    Joined:
    May 22, 2011
    Messages:
    121
    Mobo:
    ASUS ROG MAXIMUS VIII GENE LGA 1151 Intel Z170
    CPU:
    Intel i7 6700
    Graphics:
    MSI GTX 1070 Gaming X
    Mobile Phone:
    iOS
    Oct 6, 2017 at 9:38 PM #266
    umran23

    umran23

    Joined:
    May 22, 2011
    Messages:
    121
    Mobo:
    ASUS ROG MAXIMUS VIII GENE LGA 1151 Intel Z170
    CPU:
    Intel i7 6700
    Graphics:
    MSI GTX 1070 Gaming X
    Mobile Phone:
    iOS
    @pastrychef No I haven't tried with High Sierra, I formated my dummy disk with HS, yesterday when I was about to test with HS, supplemental update came in (i don't have the previous HS USB right now) and nvidia drivers were still missing, once they update, I'll test it. But if you are in last week's HS build which has nvidia web drivers, do try out, it should work. Don't forget the boot argument.

    Yeah before using the latest Lilu and its plugins, even I didn't have quicksync in HS.

    Yes I am using a dGPU with no connection on Intel. This is why connector-less is necessary, as for such task even in iMac and macbooks with dGPUs, MacOS usually forwards decodes/encodes to Intel GPU for battery/power efficiency and yes even I was expecting the vdadecoder test to fail but, but according to the developer of Shiki, he too mentions with these new plugins and Lilu, it shouldn't show like that, you can find the response in the last few comments with my results HERE.
     
    pastrychef likes this.
  7. iamsteven

    iamsteven

    Joined:
    Jul 28, 2012
    Messages:
    8
    Mobo:
    ASUS H170 PRO GAMING
    CPU:
    Intel Core i5-6500
    Graphics:
    ASUS GeForce GTX 1060 6GB
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Oct 7, 2017 at 1:39 AM #267
    iamsteven

    iamsteven

    Joined:
    Jul 28, 2012
    Messages:
    8
    Mobo:
    ASUS H170 PRO GAMING
    CPU:
    Intel Core i5-6500
    Graphics:
    ASUS GeForce GTX 1060 6GB
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    I am already using those kexts uploaded by you, using shikigva=4, using PEG as primary and enabled IGPU multi-monitor with DVMT=64MB (connector-less with 0x19120001) and renamed HECI to IMEI; GFX0 to IGPU; PEGP to GFX0. Still my VDADecoderChecker result appeared like this:

    GVA info: Successfully connected to the Intel plugin, offline Gen9

    AVDCreateGPUAccelerator: Error loading GPU renderer

    VDADecoderCreate failed. err: -12473​

    I have a "Disable board-id check to prevent no signal (c) lvs1974, Pike R. Alpha, vit9696" clover patch, dont know whether its related.
     
  8. iamsteven

    iamsteven

    Joined:
    Jul 28, 2012
    Messages:
    8
    Mobo:
    ASUS H170 PRO GAMING
    CPU:
    Intel Core i5-6500
    Graphics:
    ASUS GeForce GTX 1060 6GB
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Oct 7, 2017 at 1:57 AM #268
    iamsteven

    iamsteven

    Joined:
    Jul 28, 2012
    Messages:
    8
    Mobo:
    ASUS H170 PRO GAMING
    CPU:
    Intel Core i5-6500
    Graphics:
    ASUS GeForce GTX 1060 6GB
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    After a while of testing, I found that no IOVARendererID is injected under PEG0@1 or GFX0@0. Any idea on how to solve this?
     
  9. umran23

    umran23

    Joined:
    May 22, 2011
    Messages:
    121
    Mobo:
    ASUS ROG MAXIMUS VIII GENE LGA 1151 Intel Z170
    CPU:
    Intel i7 6700
    Graphics:
    MSI GTX 1070 Gaming X
    Mobile Phone:
    iOS
    Oct 7, 2017 at 10:54 AM #269
    umran23

    umran23

    Joined:
    May 22, 2011
    Messages:
    121
    Mobo:
    ASUS ROG MAXIMUS VIII GENE LGA 1151 Intel Z170
    CPU:
    Intel i7 6700
    Graphics:
    MSI GTX 1070 Gaming X
    Mobile Phone:
    iOS
    This was suppose to be injected by nvidiagraphicsfixup according to its changelog, can you compile a new kext from the source code and see? It’s available on sourceforge. Remember to precompile Lilu too.
     
  10. umran23

    umran23

    Joined:
    May 22, 2011
    Messages:
    121
    Mobo:
    ASUS ROG MAXIMUS VIII GENE LGA 1151 Intel Z170
    CPU:
    Intel i7 6700
    Graphics:
    MSI GTX 1070 Gaming X
    Mobile Phone:
    iOS
    Oct 7, 2017 at 3:28 PM #270
    umran23

    umran23

    Joined:
    May 22, 2011
    Messages:
    121
    Mobo:
    ASUS ROG MAXIMUS VIII GENE LGA 1151 Intel Z170
    CPU:
    Intel i7 6700
    Graphics:
    MSI GTX 1070 Gaming X
    Mobile Phone:
    iOS
    @iamsteven : Are you getting HW decoding in browsers other than Safari?
     

Share This Page