SWDEV-345020 - The bit channel description should not allow any channels after a zero channel
Change-Id: I66e6d25c032d22f9616dc59730f1f094d30c01cf
This commit is contained in:
committed by
Maneesh Gupta
parent
53be27a84f
commit
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user