mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Update CL_QUEUE_SIZE query
When providing invalid queue type, return CL_INVALID_COMMAND_QUEUE error. Change-Id: I4f9412539f708ac3e5f5a367f7d503803863466e Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
45665ae236
commit
79c5502e77
@@ -84,7 +84,7 @@ cl_int getQueueInfo(QueueType *queue,
|
||||
retVal = changeGetInfoStatusToCLResultType(getInfoHelper.set<cl_uint>(devQ->getQueueSize()));
|
||||
break;
|
||||
}
|
||||
retVal = CL_INVALID_VALUE;
|
||||
retVal = CL_INVALID_COMMAND_QUEUE;
|
||||
break;
|
||||
case CL_QUEUE_PROPERTIES_ARRAY: {
|
||||
const cl_queue_properties *source = nullptr;
|
||||
|
||||
@@ -79,7 +79,7 @@ TEST_P(GetCommandQueueInfoTest, QUEUE_PROPERTIES) {
|
||||
EXPECT_EQ(properties, command_queue_properties_returned);
|
||||
}
|
||||
|
||||
TEST_P(GetCommandQueueInfoTest, QUEUE_SIZE) {
|
||||
TEST_P(GetCommandQueueInfoTest, givenNonDeviceQueueWhenQueryingQueueSizeThenInvalidCommandQueueErrorIsReturned) {
|
||||
cl_uint queueSize = 0;
|
||||
|
||||
auto retVal = pCmdQ->getCommandQueueInfo(
|
||||
@@ -87,7 +87,7 @@ TEST_P(GetCommandQueueInfoTest, QUEUE_SIZE) {
|
||||
sizeof(queueSize),
|
||||
&queueSize,
|
||||
nullptr);
|
||||
EXPECT_EQ(CL_INVALID_VALUE, retVal);
|
||||
EXPECT_EQ(CL_INVALID_COMMAND_QUEUE, retVal);
|
||||
}
|
||||
|
||||
TEST_P(GetCommandQueueInfoTest, QUEUE_DEVICE_DEFAULT) {
|
||||
|
||||
Reference in New Issue
Block a user