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

Method isImagesRequired

test_conformance/spir/run_services.cpp:593–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

591}
592
593cl_bool KhrSupport::isImagesRequired(const char* suite, const char* test) const
594{
595 cl_bool ret = CL_FALSE;
596 const std::string strSuite(suite), strTest(test);
597
598 // Iterating on the DataTable, searching whether the row with th requested
599 // row exists.
600 for(size_t rowIndex = 0; rowIndex < m_dt.getNumRows(); rowIndex++)
601 {
602 const DataRow& dr = m_dt[rowIndex];
603 const std::string csvSuite = dr[SUITE_INDEX], csvTest = dr[TEST_INDEX];
604 bool sameSuite = (csvSuite == strSuite), sameTest = (csvTest == strTest)||(csvTest == "*");
605 if (sameTest && sameSuite)
606 {
607 ret = (dr[IMAGES_INDEX] == "CL_TRUE") ? CL_TRUE : CL_FALSE;
608 break;
609 }
610 }
611
612 return ret;
613}
614
615cl_bool KhrSupport::isImages3DRequired(const char* suite, const char* test) const
616{

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