From 33e9abffd673f47d1337df646e51694599fde4eb Mon Sep 17 00:00:00 2001 From: Visual Ehrmanntraut <30368284+ChefKissInc@users.noreply.github.com> Date: Fri, 14 Jul 2023 20:36:19 +0300 Subject: [PATCH] Another DDI caps fix Signed-off-by: Visual Ehrmanntraut <30368284+ChefKissInc@users.noreply.github.com> --- NootedRed/kern_hwlibs.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NootedRed/kern_hwlibs.cpp b/NootedRed/kern_hwlibs.cpp index 28043c4a..a35d5f5f 100644 --- a/NootedRed/kern_hwlibs.cpp +++ b/NootedRed/kern_hwlibs.cpp @@ -60,14 +60,15 @@ bool X5000HWLibs::processKext(KernelPatcher &patcher, size_t index, mach_vm_addr "Failed to enable kernel writing"); *orgDeviceTypeTable = {.deviceId = NRed::callback->deviceId, .deviceType = 6}; auto found = false; - auto targetDeviceId = NRed::callback->chipType > ChipType::Renoir && NRed::callback->deviceId != 0x1636 ? + auto targetDeviceId = NRed::callback->chipType >= ChipType::Renoir && NRed::callback->deviceId != 0x1636 ? 0x1636 : NRed::callback->deviceId; while (orgCapsInitTable->deviceId != 0xFFFFFFFF) { if (orgCapsInitTable->familyId == AMDGPU_FAMILY_RAVEN && orgCapsInitTable->deviceId == targetDeviceId) { orgCapsInitTable->deviceId = NRed::callback->deviceId; orgCapsInitTable->revision = NRed::callback->revision; - orgCapsInitTable->extRevision = NRed::callback->enumRevision; + orgCapsInitTable->extRevision = + static_cast(NRed::callback->enumRevision) + NRed::callback->revision; orgCapsInitTable->pciRevision = NRed::callback->pciRevision; *orgCapsTable = { .familyId = AMDGPU_FAMILY_RAVEN,