Skip to content

Commit

Permalink
Only load DDF bundles into memory for devices in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
manup committed May 13, 2024
1 parent bfa4cc0 commit 2c1de95
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions device_descriptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2478,10 +2478,11 @@ void DeviceDescriptions::readAllBundles()
if (DDFB_FindChunk(&bs, "DESC", &chunkSize) == 0)
continue;

/*
* Only load bundles into memory for devices which are present.
*/
if (DDF_IsBundleScheduled(pctx, (char*)&bs.data[bs.pos], chunkSize, d->ddfLoadRecords) == 0)
{
// continue; // TODO TEMP ONLY
}
continue;

// limit to DDFB content
U_bstream_init(&bs, &fileData[ddfbChunkOffset], ddfbChunkSize);
Expand Down

0 comments on commit 2c1de95

Please sign in to comment.