intel_extreme: four pipes from gen12
Change-Id: I1dd41b4be80acb1784180d1e4a7ea4d9947b6dd5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5214 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
0f01971951
commit
6715abde89
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user