| 613 | } |
| 614 | |
| 615 | cl_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 | |
| 638 | static void generate_kernel_args(cl_context context, cl_kernel kernel, const WorkSizeInfo& ws, KernelArgs& cl_args, const cl_device_id device) |