mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-22 23:29:02 +00:00
User create_* helper functions in most tests
Ported from master. Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
@@ -59,7 +59,7 @@ int test_image_macro(cl_device_id deviceID, cl_context context, cl_command_queue
|
||||
|
||||
if( (image_support == CL_TRUE) )
|
||||
{
|
||||
program = clCreateProgramWithSource( context, 1, (const char**) &image_supported_source, NULL, &status );
|
||||
status = create_single_kernel_helper_create_program(context, &program, 1, (const char**)&image_supported_source);
|
||||
|
||||
if( status )
|
||||
{
|
||||
@@ -75,7 +75,7 @@ int test_image_macro(cl_device_id deviceID, cl_context context, cl_command_queue
|
||||
}
|
||||
else
|
||||
{
|
||||
program = clCreateProgramWithSource( context, 1, (const char**) &image_not_supported_source, NULL, &status );
|
||||
status = create_single_kernel_helper_create_program(context, &program, 1, (const char**)&image_not_supported_source);
|
||||
if( status )
|
||||
{
|
||||
log_error ("Failure creating program, [%d] \n", status );
|
||||
|
||||
Reference in New Issue
Block a user