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

Function run_sampler_test

test_conformance/api/test_kernel_arg_info.cpp:780–800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778}
779
780static int run_sampler_test(cl_context context, cl_device_id device)
781{
782 cl_kernel_arg_address_qualifier address_qualifier =
783 CL_KERNEL_ARG_ADDRESS_PRIVATE;
784 cl_kernel_arg_type_qualifier type_qualifier = CL_KERNEL_ARG_TYPE_NONE;
785 cl_kernel_arg_access_qualifier access_qualifier = CL_KERNEL_ARG_ACCESS_NONE;
786 std::string image_type = "sampler_t";
787 bool is_pointer = false;
788
789 KernelArgInfo kernel_argument(address_qualifier, access_qualifier,
790 type_qualifier, image_type,
791 SINGLE_KERNEL_ARG_NUMBER);
792
793 KernelArgInfo expected =
794 create_expected_arg_info(kernel_argument, is_pointer);
795
796 const std::string kernel_src = generate_kernel({ kernel_argument });
797
798 return compare_kernel_with_expected(context, device, kernel_src.c_str(),
799 { expected });
800}
801
802static int run_image_tests(cl_context context, cl_device_id device)
803{

Callers 1

run_image_testsFunction · 0.85

Calls 3

create_expected_arg_infoFunction · 0.85
generate_kernelFunction · 0.85

Tested by

no test coverage detected