SWDEV-345020 - The bit channel description should not allow any channels after a zero channel
Change-Id: I66e6d25c032d22f9616dc59730f1f094d30c01cf
Этот коммит содержится в:
коммит произвёл
Maneesh Gupta
родитель
53be27a84f
Коммит
5b4e0321d4
@@ -313,6 +313,14 @@ bool CheckArrayFormat(const hipChannelFormatDesc& desc) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// The bit channel description should not allow any channels after a zero channel
|
||||
if (desc.y == 0) {
|
||||
return !(desc.z > 0 || desc.w > 0);
|
||||
}
|
||||
else if (desc.z == 0) {
|
||||
return !(desc.w > 0);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user