From 0d1016f023ef8fc62b8115e373af2cd9dba97063 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Sat, 19 Jun 2021 21:09:40 +0000 Subject: [PATCH] intel_extreme: assign ports a pipe just once. --- src/add-ons/accelerants/intel_extreme/accelerant.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/accelerants/intel_extreme/accelerant.cpp b/src/add-ons/accelerants/intel_extreme/accelerant.cpp index d8abf39e51..3816400eee 100644 --- a/src/add-ons/accelerants/intel_extreme/accelerant.cpp +++ b/src/add-ons/accelerants/intel_extreme/accelerant.cpp @@ -390,7 +390,7 @@ assign_pipes() // to limitations in the current driver on current hardware). Assign those // first for (uint32 i = 0; i < gInfo->port_count; i++) { - if (gInfo->ports[i] == NULL) + if (!gInfo->ports[i]->IsConnected()) continue; pipe_index preference = gInfo->ports[i]->PipePreference(); @@ -408,7 +408,7 @@ assign_pipes() // In a second pass, assign the remaining ports to the remaining pipes for (uint32 i = 0; i < gInfo->port_count; i++) { - if (gInfo->ports[i]->IsConnected()) { + if (gInfo->ports[i]->IsConnected() && gInfo->ports[i]->GetPipe() == NULL) { while (current < gInfo->pipe_count && assigned[current]) current++;