1
0
Fork 0

MGS-5458 [#imx-1708] fix GPU/VIP coreIndex issue

coreInfoArray use offset as coreIndex, not use hardware core

Fix: 8744fe58453c("MGS-5372 [#imx-1708] Fix the VX/CL apps hang for 865 GPU/VIP
")

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Xianzhong 2019-12-25 05:01:36 +08:00
parent b7096c3615
commit e688e85dac
1 changed files with 10 additions and 2 deletions

View File

@ -5393,10 +5393,18 @@ gckDEVICE_ChipInfo(
for (i = 0; i < Device->coreNum; i++)
{
Interface->u.ChipInfo.types[i] = info[i].type;
gceHARDWARE_TYPE type = info[i].type;
Interface->u.ChipInfo.types[i] = type;
Interface->u.ChipInfo.ids[i] = info[i].chipID;
Interface->u.ChipInfo.coreIndexs[i] = info[i].core;
if (type == gcvHARDWARE_3D || type == gcvHARDWARE_3D2D || type == gcvHARDWARE_VIP)
{
Interface->u.ChipInfo.coreIndexs[i] = i;
}
else
{
Interface->u.ChipInfo.coreIndexs[i] = info[i].core;
}
}
Interface->u.ChipInfo.count = Device->coreNum;