Skip to content

Instantly share code, notes, and snippets.

@mvaisakh
Created October 26, 2020 03:54
Show Gist options
  • Save mvaisakh/61e193b3319dc9a797d7c41045583947 to your computer and use it in GitHub Desktop.
Save mvaisakh/61e193b3319dc9a797d7c41045583947 to your computer and use it in GitHub Desktop.
Some properties I merged to for getting HW Acceleration on Vega 8 (Still does not work!!!!!!) https://github.com/mvaisakh/Asus-X505ZA-Ryzen-Hackintosh/issues/1
Head over to https://github.com/mvaisakh/Asus-X505ZA-Ryzen-Hackintosh/issues/1 , Do not email me questions regarding what this gist is about.
DefinitionBlock ("", "SSDT", 2, "SPOOF", "AMDGPU", 0x00001000)
{
External (_SB_.PCI0, DeviceObj)
External (_SB_.PCI0.GP17, DeviceObj)
External (_SB_.PCI0.GP17.VGA_, DeviceObj)
External (GP17, DeviceObj)
External (VGA_, DeviceObj)
Scope (\_SB.PCI0)
{
Scope (GP17)
{
Scope (VGA)
{
Method (_DSM, 4, NotSerialized) // _DSM: Device-Specific Method
{
Local0 = Package ()
{
"device-id",
Buffer (0x04)
{
0x60, 0x68, 0x00, 0x00 // dh..
},
"vendor-id",
Buffer (0x04)
{
0x02, 0x10, 0x00, 0x00 // ....
},
"@0,ATY,EFIDisplay",
Buffer (0x04)
{
"LVDS"
},
"ATY,EFIEnabledMode",
Buffer (One)
{
0x01
},
"CFG,CFG_FB_LIMIT",
0x03,
"CFG,CFG_USE_AGDC",
0x01,
"CFG,CFG_USE_HDMI20",
0x00,
"CAIL,CAIL_EnableSecureMmFwLoading",
Buffer ()
{
0x00
},
"PP,PP_EnableDebugInfo",
Buffer ()
{
0x01
},
"PP,Force_Load_FalconSMUFW",
Buffer ()
{
0x01
},
"PP,SMU_DisallowedFeatures",
Buffer ()
{
0x00
},
"model",
Buffer (0x12)
{
"AMD Radeon Vega 8"
},
"@0,name",
Buffer (0x0C)
{
"AMD,RadeonFramebuffer"
},
"@1,name",
Buffer (0x0C)
{
"AMD,RadeonFramebuffer"
},
"@2,name",
Buffer (0x0C)
{
"AMD,RadeonFramebuffer"
},
"ATY,memsize",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x40
},
"VRAM,totalMB",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x40
},
"hda-gfx",
Buffer (0x0A)
{
"onboard-1"
},
}
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
}
Method (DTGP, 5, NotSerialized)
{
If ((Arg0 == ToUUID ("a0b5b7c6-1318-441c-b0c9-fe695eaf949b")))
{
If ((Arg1 == One))
{
If ((Arg2 == Zero))
{
Arg4 = Buffer (One)
{
0x03 // .
}
Return (One)
}
If ((Arg2 == One))
{
Return (One)
}
}
}
Arg4 = Buffer (One)
{
0x00 // .
}
Return (Zero)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment