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

Method isImages3DRequired

test_conformance/spir/run_services.cpp:615–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615cl_bool KhrSupport::isImages3DRequired(const char* suite, const char* test) const
616{
617 cl_bool ret = CL_FALSE;
618 const std::string strSuite(suite), strTest(test);
619
620 // Iterating on the DataTable, searching whether the row with th requested
621 // row exists.
622 for(size_t rowIndex = 0; rowIndex < m_dt.getNumRows(); rowIndex++)
623 {
624 const DataRow& dr = m_dt[rowIndex];
625 const std::string csvSuite = dr[SUITE_INDEX], csvTest = dr[TEST_INDEX];
626 bool sameSuite = (csvSuite == strSuite), sameTest = (csvTest == strTest)||(csvTest == "*");
627 if (sameTest && sameSuite)
628 {
629 ret = (dr[IMAGES_3D_INDEX] == "CL_TRUE") ? CL_TRUE : CL_FALSE;
630 break;
631 }
632 }
633
634 return ret;
635}
636
637
638static void generate_kernel_args(cl_context context, cl_kernel kernel, const WorkSizeInfo& ws, KernelArgs& cl_args, const cl_device_id device)

Callers 2

runBuildTestMethod · 0.80
test_enum_valuesFunction · 0.80

Calls 1

getNumRowsMethod · 0.80

Tested by 2

runBuildTestMethod · 0.64
test_enum_valuesFunction · 0.64