libhsakmt: Fix improper type range check in legacy queue creation
Enum type for compute AQL is defined as larger then targeted SDMAs enum types. We should only deny legacy calls for SDMA queues that require targeted engines. Change-Id: I6386a8700b3b18af825b6f0d2be27052cc8de0f5
This commit is contained in:
@@ -602,7 +602,7 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtCreateQueue(HSAuint32 NodeId,
|
||||
HsaEvent *Event,
|
||||
HsaQueueResource *QueueResource)
|
||||
{
|
||||
if (Type >= HSA_QUEUE_SDMA_BY_ENG_ID)
|
||||
if (Type == HSA_QUEUE_SDMA_BY_ENG_ID)
|
||||
return HSAKMT_STATUS_ERROR;
|
||||
|
||||
return hsaKmtCreateQueueExt(NodeId, Type, QueuePercentage, Priority, 0,
|
||||
|
||||
مرجع در شماره جدید
Block a user