MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / verify_fill_struct

Function verify_fill_struct

test_conformance/buffers/test_buffer_fill.cpp:545–557  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543
544
545static int verify_fill_struct( void *ptr1, void *ptr2, int n )
546{
547 int i;
548 TestStruct *inptr = (TestStruct *)ptr1;
549 TestStruct *outptr = (TestStruct *)ptr2;
550
551 for (i=0; i<n; i++){
552 if ( ( outptr[i].a != inptr[i].a ) || ( outptr[i].b != outptr[i].b ) )
553 return -1;
554 }
555
556 return 0;
557}
558
559
560static int test_buffer_fill(cl_device_id deviceID, cl_context context,

Callers 1

REGISTER_TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected