Skip to content

Commit

Permalink
Inverted logic for GVA support (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
PMheart committed Feb 21, 2022
1 parent 9aa27af commit 66a10d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
@@ -1,5 +1,8 @@
WhateverGreen Changelog
=======================
#### v1.5.8
- Inverted logic for GVA support, which is now disabled by default and can be enabled by `enable-gva-support`.

#### v1.5.7
- Fixed maximum backlight level on Ice Lake IGPUs

Expand Down
5 changes: 2 additions & 3 deletions WhateverGreen/kern_rad.cpp
Expand Up @@ -150,12 +150,11 @@ void RAD::processKernel(KernelPatcher &patcher, DeviceInfo *info) {
for (size_t i = 0; i < info->videoExternal.size(); i++) {
if (info->videoExternal[i].vendor == WIOKit::VendorID::ATIAMD) {
if (!hasAMD) {
enableGvaSupport = getKernelVersion() >= KernelVersion::Mojave;
hasAMD = true;
}

if (info->videoExternal[i].video->getProperty("disable-gva-support"))
enableGvaSupport = false;
if (info->videoExternal[i].video->getProperty("enable-gva-support"))
enableGvaSupport = true;

// When injecting values into device properties one cannot specify boolean types.
// Provide special support for Force_Load_FalconSMUFW.
Expand Down

0 comments on commit 66a10d2

Please sign in to comment.