-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added negative tests for clCommandCopy[Buffer, BufferRect, BufferToImage]KHR #1941
Added negative tests for clCommandCopy[Buffer, BufferRect, BufferToImage]KHR #1941
Conversation
{ | ||
CommandBufferCopyDifferentContexts(cl_device_id device, cl_context context, | ||
cl_command_queue queue) | ||
: BasicCommandBufferTest(device, context, queue), in_mem_ctx(nullptr), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can put all these nullptr initialisers as designated initialisers on the declaration line rather than list them on the constructor which will be more cumbersome.
return CL_SUCCESS; | ||
} | ||
}; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing semicolon ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@silverclaw Yes, it is closing anonymous namespace, I have done it the same way as other tests are done in this directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM. I can pass these tests on some implementations with "enhanced error checking" using the command buffer emulation layer, but I think it's exposed some bugs in other implementations. 😁
test_conformance/extensions/cl_khr_command_buffer/CMakeLists.txt
Outdated
Show resolved
Hide resolved
test_conformance/extensions/cl_khr_command_buffer/negative_command_buffer_copy.cpp
Outdated
Show resolved
Hide resolved
Note: there are some merge conflicts that will need to be resolved, also. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing tests fail on an implementation without image support due to calling image APIs without querying device support first and then skipping
test_conformance/extensions/cl_khr_command_buffer/negative_command_buffer_copy.cpp
Outdated
Show resolved
Hide resolved
@EwanC added checking for IMAGE_SUPPORT, divided tests by copyBuffer* and copyImage func |
test_conformance/extensions/cl_khr_command_buffer/negative_command_buffer_copy.cpp
Outdated
Show resolved
Hide resolved
test_conformance/extensions/cl_khr_command_buffer/negative_command_buffer_copy.cpp
Outdated
Show resolved
Hide resolved
test_conformance/extensions/cl_khr_command_buffer/negative_command_buffer_copy.cpp
Outdated
Show resolved
Hide resolved
test_conformance/extensions/cl_khr_command_buffer/negative_command_buffer_copy.cpp
Show resolved
Hide resolved
test_conformance/extensions/cl_khr_command_buffer/negative_command_buffer_copy.cpp
Show resolved
Hide resolved
test_conformance/extensions/cl_khr_command_buffer/negative_command_buffer_copy.cpp
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
According to description #1668