From 6715abde89f8f1077ccfc9bdd4f24c14c520fdcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 19 Apr 2022 16:54:32 +0200 Subject: [PATCH] intel_extreme: four pipes from gen12 Change-Id: I1dd41b4be80acb1784180d1e4a7ea4d9947b6dd5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5214 Tested-by: Commit checker robot Reviewed-by: Adrien Destugues --- src/add-ons/accelerants/intel_extreme/accelerant.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/add-ons/accelerants/intel_extreme/accelerant.cpp b/src/add-ons/accelerants/intel_extreme/accelerant.cpp index a6cbafa27e..db02a8a2ec 100644 --- a/src/add-ons/accelerants/intel_extreme/accelerant.cpp +++ b/src/add-ons/accelerants/intel_extreme/accelerant.cpp @@ -144,8 +144,10 @@ init_common(int device, bool isClone) // Allocate all of our pipes int pipeCnt = 2; - if (gInfo->shared_info->device_type.Generation() >= 7) - pipeCnt = 3; // some newer gens have even more.. + if (gInfo->shared_info->device_type.Generation() >= 12) + pipeCnt = 4; + else if (gInfo->shared_info->device_type.Generation() >= 7) + pipeCnt = 3; for (int i = 0; i < pipeCnt; i++) { switch (i) { @@ -158,6 +160,9 @@ init_common(int device, bool isClone) case 2: gInfo->pipes[i] = new(std::nothrow) Pipe(INTEL_PIPE_C); break; + case 3: + gInfo->pipes[i] = new(std::nothrow) Pipe(INTEL_PIPE_D); + break; default: ERROR("%s: Unknown pipe %d\n", __func__, i); }