Lines Matching refs:test_case
2578 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local
2587 prepareDstPxls(test_case.m_dst, dst_pixels); in iterate()
2588 prepareSrcPxls(test_case.m_src, test_case.m_dst.m_internal_format, src_pixels); in iterate()
2591 m_dst_tex_name = prepareTexture(test_case.m_dst, (const GLubyte**)dst_pixels, m_dst_buf_name); in iterate()
2593 if (GL_RENDERBUFFER == test_case.m_src.m_target) in iterate()
2595 targetDesc desc = test_case.m_src; in iterate()
2598 m_rb_name = prepareTexture(test_case.m_src, (const GLubyte**)src_pixels, m_src_buf_name); in iterate()
2603 m_src_tex_name = prepareTexture(test_case.m_src, (const GLubyte**)src_pixels, m_src_buf_name); in iterate()
2607 result = copyAndVerify(test_case, (const GLubyte**)dst_pixels, (const GLubyte**)src_pixels); in iterate()
2703 bool FunctionalTest::copyAndVerify(const testCase& test_case, const GLubyte** dst_pixels, const GLu… in copyAndVerify() argument
2709 const bool is_dst_multi_layer = Utils::isTargetMultilayer(test_case.m_dst.m_target); in copyAndVerify()
2710 const bool is_src_multi_layer = Utils::isTargetMultilayer(test_case.m_src.m_target); in copyAndVerify()
2747 gl.copyImageSubData(m_src_tex_name, test_case.m_src.m_target, test_case.m_src.m_level, in copyAndVerify()
2748 test_case.m_src_x, test_case.m_src_y, src_layer, m_dst_tex_name, in copyAndVerify()
2749 test_case.m_dst.m_target, test_case.m_dst.m_level, test_case.m_dst_x, in copyAndVerify()
2750 test_case.m_dst_y, dst_layer, test_case.m_width, test_case.m_height, region_depth); in copyAndVerify()
2755 gl.copyImageSubData(m_src_tex_name, GL_TEXTURE_2D, test_case.m_src.m_level, test_case.m_src_x, in copyAndVerify()
2756 test_case.m_src_y, src_layer, m_rb_name, test_case.m_src.m_target, in copyAndVerify()
2757 test_case.m_src.m_level, test_case.m_src_x, test_case.m_src_y, src_layer, in copyAndVerify()
2758 test_case.m_width, test_case.m_height, region_depth); in copyAndVerify()
2760 …gl.copyImageSubData(m_rb_name, test_case.m_src.m_target, test_case.m_src.m_level, test_case.m_src_… in copyAndVerify()
2761 test_case.m_src_y, src_layer, m_dst_tex_name, test_case.m_dst.m_target, in copyAndVerify()
2762 test_case.m_dst.m_level, test_case.m_dst_x, test_case.m_dst_y, dst_layer, in copyAndVerify()
2763 test_case.m_width, test_case.m_height, region_depth); in copyAndVerify()
2772 result = verify(test_case, dst_layer, dst_pixels, src_layer, src_pixels, region_depth); in copyAndVerify()
2779 << "Failure. Targets src: " << glu::getTextureTargetStr(test_case.m_src.m_target) in copyAndVerify()
2780 << ", dst: " << glu::getTextureTargetStr(test_case.m_dst.m_target) in copyAndVerify()
2781 << ". Levels src: " << test_case.m_src.m_level << ", dst: " << test_case.m_dst.m_level in copyAndVerify()
2782 << ". Dimmensions src [" << test_case.m_src.m_width << ", " << test_case.m_src.m_height in copyAndVerify()
2783 << "], dst [" << test_case.m_dst.m_width << ", " << test_case.m_dst.m_height << "]. Region [" in copyAndVerify()
2784 << test_case.m_width << " x " << test_case.m_height << " x " << region_depth << "] from [" in copyAndVerify()
2785 << test_case.m_src_x << ", " << test_case.m_src_y << ", " << src_layer << "] to [" in copyAndVerify()
2786 << test_case.m_dst_x << ", " << test_case.m_dst_y << ", " << dst_layer in copyAndVerify()
2787 << "]. Format src: " << glu::getInternalFormatParameterStr(test_case.m_src.m_internal_format) in copyAndVerify()
2788 << ", dst: " << glu::getInternalFormatParameterStr(test_case.m_dst.m_internal_format) in copyAndVerify()
2980 void FunctionalTest::getCleanRegions(const testCase& test_case, GLuint dst_level, GLuint out_region… in getCleanRegions() argument
2989 …calculateDimmensions(test_case.m_dst.m_target, dst_level, test_case.m_dst.m_width, test_case.m_dst… in getCleanRegions()
2994 const GLuint reg_x = test_case.m_dst_x; in getCleanRegions()
2995 const GLuint reg_y = test_case.m_dst_y; in getCleanRegions()
2996 const GLuint reg_w = test_case.m_width; in getCleanRegions()
2997 const GLuint reg_h = test_case.m_height; in getCleanRegions()
3308 testCase test_case = { in prepareTestCases() local
3334 test_case.m_dst_x = dst_coord[dst_x]; in prepareTestCases()
3335 test_case.m_dst_y = dst_coord[dst_y]; in prepareTestCases()
3336 test_case.m_src_x = src_coord[src_x]; in prepareTestCases()
3337 test_case.m_src_y = src_coord[src_y]; in prepareTestCases()
3339 m_test_cases.push_back(test_case); in prepareTestCases()
3345 test_case.m_dst_x = dst_coord[n_dst_coords - 1]; in prepareTestCases()
3346 test_case.m_dst_y = dst_coord[n_dst_coords - 1]; in prepareTestCases()
3347 test_case.m_src_x = src_coord[0]; in prepareTestCases()
3348 test_case.m_src_y = src_coord[0]; in prepareTestCases()
3350 m_test_cases.push_back(test_case); in prepareTestCases()
3357 test_case.m_dst_x = 0; in prepareTestCases()
3358 test_case.m_dst_y = 0; in prepareTestCases()
3359 test_case.m_src_x = 0; in prepareTestCases()
3360 test_case.m_src_y = 0; in prepareTestCases()
3361 test_case.m_width = dst_image_dimmension; in prepareTestCases()
3362 test_case.m_height = dst_image_dimmension; in prepareTestCases()
3364 m_test_cases.push_back(test_case); in prepareTestCases()
3426 bool FunctionalTest::verify(const testCase& test_case, GLuint dst_layer, const GLubyte** dst_pixels… in verify() argument
3429 const bool is_dst_multi_level = Utils::isTargetMultilevel(test_case.m_dst.m_target); in verify()
3430 const bool is_src_multi_level = Utils::isTargetMultilevel(test_case.m_src.m_target); in verify()
3431 const GLuint dst_level = test_case.m_dst.m_level; in verify()
3433 const GLuint dst_pixel_size = Utils::getPixelSizeForFormat(test_case.m_dst.m_internal_format); in verify()
3434 targetDesc src_desc = test_case.m_src; in verify()
3454 …calculateDimmensions(test_case.m_dst.m_target, dst_level, test_case.m_dst.m_width, test_case.m_dst… in verify()
3513 getPixels(m_dst_tex_name, test_case.m_dst, level, &dst_level_data[0]); in verify()
3517 …if (false == compareImages(test_case.m_dst, dst_pixels[level], 0, 0, layer, level, test_case.m_dst, in verify()
3534 getPixels(m_dst_tex_name, test_case.m_dst, dst_level, &dst_level_data[0]); in verify()
3540 if (false == compareImages(test_case.m_dst, dst_pixels[dst_level], 0, 0, layer, dst_level, in verify()
3541 test_case.m_dst, &dst_level_data[0], 0, 0, layer, dst_level, in verify()
3562 getCleanRegions(test_case, dst_level, regions, n_regions); in verify()
3571 if (false == compareImages(test_case.m_dst, dst_pixels[dst_level], x, y, layer + dst_layer, in verify()
3572 dst_level, test_case.m_dst, &dst_level_data[0], x, y, layer + dst_layer, in verify()
3585 …if (false == compareImages(test_case.m_dst, &dst_level_data[0], test_case.m_dst_x, test_case.m_dst… in verify()
3586 layer + dst_layer, dst_level, src_desc, src_pixels[src_level], test_case.m_src_x, in verify()
3587 test_case.m_src_y, layer + src_layer, src_level, test_case.m_width, in verify()
3588 test_case.m_height)) in verify()
3631 const testCase test_case = { target, GL_RGBA32UI, GL_RGBA_INTEGER, GL_UNSIGNED_INT }; in SmokeTest() local
3633 m_test_cases.push_back(test_case); in SmokeTest()
3643 const testCase test_case = { GL_TEXTURE_2D, internal_format, format, type }; in SmokeTest() local
3645 m_test_cases.push_back(test_case); in SmokeTest()
3704 bool SmokeTest::compareImages(const testCase& test_case, const GLubyte* left_data, const GLubyte* r… in compareImages() argument
3708 const GLuint pixel_size = Utils::getPixelSizeForFormat(test_case.m_internal_format); in compareImages()
3713 if ((GL_TEXTURE_1D == test_case.m_target) || (GL_TEXTURE_1D_ARRAY == test_case.m_target)) in compareImages()
3742 test_case.m_format, test_case.m_type, test_case.m_internal_format, left_pixel_data, in compareImages()
3743 test_case.m_format, test_case.m_type, test_case.m_internal_format, right_pixel_data)) in compareImages()
3748 << ". Data left: " << Utils::getPixelString(test_case.m_internal_format, left_pixel_data) in compareImages()
3749 << ", right: " << Utils::getPixelString(test_case.m_internal_format, right_pixel_data) in compareImages()
3768 bool SmokeTest::copyAndVerify(const testCase& test_case, const GLubyte* src_pixels) in copyAndVerify() argument
3780 if ((GL_TEXTURE_1D == test_case.m_target) || (GL_TEXTURE_1D_ARRAY == test_case.m_target)) in copyAndVerify()
3785 …gl.copyImageSubData(m_src_tex_name, test_case.m_target, 0 /* srcLevel */, 0 /* srcX */, 0 /* srcY … in copyAndVerify()
3786 0 /* srcZ */, m_dst_tex_name, test_case.m_target, 0 /* dstLevel */, 0 /* dstX */, in copyAndVerify()
3793 0 /* srcZ */, m_rb_name, test_case.m_target, 0 /* dstLevel */, 0 /* dstX */, in copyAndVerify()
3796 gl.copyImageSubData(m_rb_name, test_case.m_target, 0 /* dstLevel */, 0 /* dstX */, 0 /* dstY */, in copyAndVerify()
3807 result = verify(test_case, src_pixels); in copyAndVerify()
3813 << tcu::TestLog::Message << "Failure. Target: " << glu::getTextureTargetStr(test_case.m_target) in copyAndVerify()
3814 << ". Format: " << glu::getInternalFormatParameterStr(test_case.m_internal_format) in copyAndVerify()
3839 void SmokeTest::getPixels(GLuint name, const SmokeTest::testCase& test_case, GLubyte* out_pixels) c… in getPixels() argument
3842 GLenum tgt_bind = test_case.m_target; in getPixels()
3843 GLenum tgt_get = test_case.m_target; in getPixels()
3845 if (GL_RENDERBUFFER == test_case.m_target) in getPixels()
3850 else if (GL_TEXTURE_CUBE_MAP == test_case.m_target) in getPixels()
3858 gl.getTexImage(tgt_get, 0 /* level */, test_case.m_format, test_case.m_type, out_pixels); in getPixels()
3876 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local
3885 prepareDstPxls(test_case, dst_pixels); in iterate()
3886 prepareSrcPxls(test_case, src_pixels); in iterate()
3889 if (GL_RENDERBUFFER == test_case.m_target) in iterate()
3891 testCase desc = test_case; in iterate()
3896 m_rb_name = prepareTexture(test_case, 0 /* pixels */, ignored /* buffer name */); in iterate()
3902 m_dst_tex_name = prepareTexture(test_case, dst_pixels, m_dst_buf_name); in iterate()
3903 m_src_tex_name = prepareTexture(test_case, src_pixels, m_src_buf_name); in iterate()
3907 result = copyAndVerify(test_case, src_pixels); in iterate()
3952 void SmokeTest::prepareDstPxls(const SmokeTest::testCase& test_case, GLubyte*& out_pixels) const in prepareDstPxls() argument
3956 const GLenum internal_format = test_case.m_internal_format; in prepareDstPxls()
3957 const GLuint n_layers = (GL_TEXTURE_CUBE_MAP_ARRAY != test_case.m_target) ? m_depth : 6; in prepareDstPxls()
3961 const GLenum type = test_case.m_type; in prepareDstPxls()
3987 void SmokeTest::prepareSrcPxls(const SmokeTest::testCase& test_case, GLubyte*& out_pixels) const in prepareSrcPxls() argument
3991 const GLenum internal_format = test_case.m_internal_format; in prepareSrcPxls()
3992 const GLuint n_layers = (GL_TEXTURE_CUBE_MAP_ARRAY != test_case.m_target) ? m_depth : 6; in prepareSrcPxls()
3998 const GLenum type = test_case.m_type; in prepareSrcPxls()
4049 GLuint SmokeTest::prepareTexture(const testCase& test_case, const GLubyte* pixels, GLuint& out_buf_… in prepareTexture() argument
4051 const GLuint n_layers = (GL_TEXTURE_CUBE_MAP_ARRAY != test_case.m_target) ? m_depth : 6; in prepareTexture()
4052 GLuint name = Utils::generateTexture(m_context, test_case.m_target); in prepareTexture()
4054 …Utils::prepareTexture(m_context, name, test_case.m_target, test_case.m_internal_format, test_case.… in prepareTexture()
4055 test_case.m_type, 0 /* level */, m_width, m_height, n_layers, pixels, out_buf_id); in prepareTexture()
4057 Utils::makeTextureComplete(m_context, test_case.m_target, name, 0 /* base */, 0 /* max */); in prepareTexture()
4069 bool SmokeTest::verify(const testCase& test_case, const GLubyte* src_pixels) in verify() argument
4072 const GLuint n_layers = (GL_TEXTURE_CUBE_MAP_ARRAY != test_case.m_target) ? m_depth : 6; in verify()
4073 const GLuint pixel_size = Utils::getPixelSizeForFormat(test_case.m_internal_format); in verify()
4084 getPixels(m_src_tex_name, test_case, &src_data[0]); in verify()
4086 if (false == compareImages(test_case, src_pixels, &src_data[0])) in verify()
4097 getPixels(m_dst_tex_name, test_case, &dst_data[0]); in verify()
4099 if (false == compareImages(test_case, src_pixels, &dst_data[0])) in verify()
4135 testCase test_case = { src_target, dst_target, GL_NO_ERROR }; in InvalidTargetTest() local
4139 test_case.m_expected_result = GL_INVALID_OPERATION; in InvalidTargetTest()
4142 m_test_cases.push_back(test_case); in InvalidTargetTest()
4153 const testCase test_case = { src_target, dst_target, GL_INVALID_ENUM }; in InvalidTargetTest() local
4155 m_test_cases.push_back(test_case); in InvalidTargetTest()
4166 const testCase test_case = { src_target, dst_target, GL_INVALID_ENUM }; in InvalidTargetTest() local
4168 m_test_cases.push_back(test_case); in InvalidTargetTest()
4179 const testCase test_case = { src_target, dst_target, GL_INVALID_ENUM }; in InvalidTargetTest() local
4181 m_test_cases.push_back(test_case); in InvalidTargetTest()
4196 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local
4201 m_dst_tex_name = Utils::prepareTex16x16x6(m_context, test_case.m_dst_target, GL_RGBA8, GL_RGBA, in iterate()
4203 m_src_tex_name = Utils::prepareTex16x16x6(m_context, test_case.m_src_target, GL_RGBA8, GL_RGBA, in iterate()
4207 …Utils::makeTextureComplete(m_context, test_case.m_dst_target, m_dst_tex_name, 0 /* base */, 0 /* m… in iterate()
4208 …Utils::makeTextureComplete(m_context, test_case.m_src_target, m_src_tex_name, 0 /* base */, 0 /* m… in iterate()
4217 …gl.copyImageSubData(m_src_tex_name, test_case.m_src_target, 0 /* srcLevel */, 0 /* srcX */, 0 /* s… in iterate()
4218 0 /* srcZ */, m_dst_tex_name, test_case.m_dst_target, 0 /* dstLevel */, 0 /* dstX */, in iterate()
4223 result = (test_case.m_expected_result == error); in iterate()
4245 …<< tcu::TestLog::Message << "Failure. Expected result: " << glu::getErrorStr(test_case.m_expected_… in iterate()
4247 << ". Source target: " << glu::getTextureTargetStr(test_case.m_src_target) in iterate()
4248 …<< ", destination target: " << glu::getTextureTargetStr(test_case.m_dst_target) << tcu::TestLog::E… in iterate()
4263 const testCase& test_case = m_test_cases[m_test_case_index]; in clean() local
4266 Utils::deleteTexture(m_context, test_case.m_dst_target, m_dst_tex_name); in clean()
4267 Utils::deleteTexture(m_context, test_case.m_src_target, m_src_tex_name); in clean()
4308 testCase test_case = { tex_target, src_target, dst_target, GL_INVALID_ENUM }; in TargetMismatchTest() local
4319 test_case.m_expected_result = GL_NO_ERROR; in TargetMismatchTest()
4328 m_test_cases.push_back(test_case); in TargetMismatchTest()
4340 testCase test_case = { tex_target, src_target, dst_target, GL_INVALID_ENUM }; in TargetMismatchTest() local
4351 test_case.m_expected_result = GL_NO_ERROR; in TargetMismatchTest()
4360 m_test_cases.push_back(test_case); in TargetMismatchTest()
4375 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local
4380 m_dst_tex_name = Utils::prepareTex16x16x6(m_context, test_case.m_tex_target, GL_RGBA8, GL_RGBA, in iterate()
4382 m_src_tex_name = Utils::prepareTex16x16x6(m_context, test_case.m_tex_target, GL_RGBA8, GL_RGBA, in iterate()
4386 …Utils::makeTextureComplete(m_context, test_case.m_tex_target, m_dst_tex_name, 0 /* base */, 0 /* m… in iterate()
4387 …Utils::makeTextureComplete(m_context, test_case.m_tex_target, m_src_tex_name, 0 /* base */, 0 /* m… in iterate()
4396 …gl.copyImageSubData(m_src_tex_name, test_case.m_src_target, 0 /* srcLevel */, 0 /* srcX */, 0 /* s… in iterate()
4397 0 /* srcZ */, m_dst_tex_name, test_case.m_dst_target, 0 /* dstLevel */, 0 /* dstX */, in iterate()
4402 result = (test_case.m_expected_result == error); in iterate()
4423 …<< tcu::TestLog::Message << "Failure. Expected result: " << glu::getErrorStr(test_case.m_expected_… in iterate()
4425 << ". Texture target: " << glu::getTextureTargetStr(test_case.m_tex_target) in iterate()
4426 << ". Source target: " << glu::getTextureTargetStr(test_case.m_src_target) in iterate()
4427 …<< ", destination target: " << glu::getTextureTargetStr(test_case.m_dst_target) << tcu::TestLog::E… in iterate()
4481 testCase test_case = { tex_target, false, false, GL_INVALID_OPERATION }; in IncompleteTexTest() local
4489 m_test_cases.push_back(test_case); in IncompleteTexTest()
4491 test_case.m_is_dst_complete = true; in IncompleteTexTest()
4492 test_case.m_is_src_complete = false; in IncompleteTexTest()
4493 m_test_cases.push_back(test_case); in IncompleteTexTest()
4495 test_case.m_is_dst_complete = false; in IncompleteTexTest()
4496 test_case.m_is_src_complete = true; in IncompleteTexTest()
4497 m_test_cases.push_back(test_case); in IncompleteTexTest()
4499 test_case.m_is_dst_complete = true; in IncompleteTexTest()
4500 test_case.m_is_src_complete = true; in IncompleteTexTest()
4501 test_case.m_expected_result = GL_NO_ERROR; in IncompleteTexTest()
4502 m_test_cases.push_back(test_case); in IncompleteTexTest()
4516 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local
4521 m_dst_tex_name = Utils::prepareTex16x16x6(m_context, test_case.m_tex_target, GL_RGBA8, GL_RGBA, in iterate()
4523 m_src_tex_name = Utils::prepareTex16x16x6(m_context, test_case.m_tex_target, GL_RGBA8, GL_RGBA, in iterate()
4527 if (true == test_case.m_is_dst_complete) in iterate()
4529 …Utils::makeTextureComplete(m_context, test_case.m_tex_target, m_dst_tex_name, 0 /* base */, 0 /* m… in iterate()
4532 if (true == test_case.m_is_src_complete) in iterate()
4534 …Utils::makeTextureComplete(m_context, test_case.m_tex_target, m_src_tex_name, 0 /* base */, 0 /* m… in iterate()
4544 …gl.copyImageSubData(m_src_tex_name, test_case.m_tex_target, 0 /* srcLevel */, 0 /* srcX */, 0 /* s… in iterate()
4545 0 /* srcZ */, m_dst_tex_name, test_case.m_tex_target, 0 /* dstLevel */, 0 /* dstX */, in iterate()
4550 result = (test_case.m_expected_result == error); in iterate()
4571 …<< tcu::TestLog::Message << "Failure. Expected result: " << glu::getErrorStr(test_case.m_expected_… in iterate()
4573 << ". Texture target: " << glu::getTextureTargetStr(test_case.m_tex_target) in iterate()
4574 << ". Is source complete: " << test_case.m_is_src_complete in iterate()
4575 << ", is destination complete: " << test_case.m_is_dst_complete << tcu::TestLog::EndMessage; in iterate()
4631 testCase test_case = { tex_target, GL_RGBA8UI, GL_RGBA_INTEGER, GL_UNSIGNED_BYTE, in IncompatibleFormatsTest() local
4640 m_test_cases.push_back(test_case); in IncompatibleFormatsTest()
4648 testCase test_case = { tex_target, GL_RGBA8UI, GL_RGBA_INTEGER, GL_UNSIGNED_BYTE, in IncompatibleFormatsTest() local
4657 m_test_cases.push_back(test_case); in IncompatibleFormatsTest()
4665 testCase test_case = { tex_target, GL_RGBA16UI, GL_RGBA_INTEGER, GL_UNSIGNED_SHORT, in IncompatibleFormatsTest() local
4674 m_test_cases.push_back(test_case); in IncompatibleFormatsTest()
4682 testCase test_case = { tex_target, GL_RGBA32UI, GL_RGBA_INTEGER, GL_UNSIGNED_INT, in IncompatibleFormatsTest() local
4691 m_test_cases.push_back(test_case); in IncompatibleFormatsTest()
4699 testCase test_case = { tex_target, GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, in IncompatibleFormatsTest() local
4708 m_test_cases.push_back(test_case); in IncompatibleFormatsTest()
4722 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local
4727 …m_dst_tex_name = Utils::prepareTex16x16x6(m_context, test_case.m_tex_target, test_case.m_dst_inter… in iterate()
4728 test_case.m_dst_format, test_case.m_dst_type, m_dst_buf_name); in iterate()
4729 …m_src_tex_name = Utils::prepareTex16x16x6(m_context, test_case.m_tex_target, test_case.m_src_inter… in iterate()
4730 test_case.m_src_format, test_case.m_src_type, m_src_buf_name); in iterate()
4733 …Utils::makeTextureComplete(m_context, test_case.m_tex_target, m_dst_tex_name, 0 /* base */, 0 /* m… in iterate()
4734 …Utils::makeTextureComplete(m_context, test_case.m_tex_target, m_src_tex_name, 0 /* base */, 0 /* m… in iterate()
4743 …gl.copyImageSubData(m_src_tex_name, test_case.m_tex_target, 0 /* srcLevel */, 0 /* srcX */, 0 /* s… in iterate()
4744 0 /* srcZ */, m_dst_tex_name, test_case.m_tex_target, 0 /* dstLevel */, 0 /* dstX */, in iterate()
4749 result = (test_case.m_expected_result == error); in iterate()
4770 …<< tcu::TestLog::Message << "Failure. Expected result: " << glu::getErrorStr(test_case.m_expected_… in iterate()
4772 << ". Texture target: " << glu::getTextureTargetStr(test_case.m_tex_target) in iterate()
4773 << ". Source format: " << glu::getInternalFormatParameterStr(test_case.m_src_internal_format) in iterate()
4774 … << ". Destination format: " << glu::getInternalFormatParameterStr(test_case.m_dst_internal_format) in iterate()
4790 const testCase& test_case = m_test_cases[m_test_case_index]; in clean() local
4793 Utils::deleteTexture(m_context, test_case.m_tex_target, m_dst_tex_name); in clean()
4794 Utils::deleteTexture(m_context, test_case.m_tex_target, m_src_tex_name); in clean()
4824 testCase test_case; in SamplesMismatchTest() local
4838 test_case.m_src_target = targets[src_target]; in SamplesMismatchTest()
4839 test_case.m_src_n_samples = n_samples[src_sample]; in SamplesMismatchTest()
4840 test_case.m_dst_target = targets[dst_target]; in SamplesMismatchTest()
4841 test_case.m_dst_n_samples = n_samples[dst_sample]; in SamplesMismatchTest()
4843 if (test_case.m_src_n_samples == test_case.m_dst_n_samples) in SamplesMismatchTest()
4845 test_case.m_expected_result = GL_NO_ERROR; in SamplesMismatchTest()
4849 test_case.m_expected_result = GL_INVALID_OPERATION; in SamplesMismatchTest()
4852 m_test_cases.push_back(test_case); in SamplesMismatchTest()
4869 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local
4874 …m_dst_tex_name = Utils::prepareMultisampleTex(m_context, test_case.m_dst_target, test_case.m_dst_n… in iterate()
4875 …m_src_tex_name = Utils::prepareMultisampleTex(m_context, test_case.m_src_target, test_case.m_src_n… in iterate()
4883 GLenum expected_result = test_case.m_expected_result; in iterate()
4885 if (test_case.m_dst_n_samples > 0 && test_case.m_src_n_samples > 0) in iterate()
4893 gl.bindTexture(test_case.m_dst_target, m_dst_tex_name); in iterate()
4894 gl.getTexLevelParameteriv(test_case.m_dst_target, 0, GL_TEXTURE_SAMPLES, &num_dst_samples); in iterate()
4895 gl.bindTexture(test_case.m_src_target, m_src_tex_name); in iterate()
4896 gl.getTexLevelParameteriv(test_case.m_src_target, 0, GL_TEXTURE_SAMPLES, &num_src_samples); in iterate()
4897 if (num_dst_samples != test_case.m_dst_n_samples || num_src_samples != test_case.m_src_n_samples) in iterate()
4903 if (test_case.m_dst_n_samples != test_case.m_src_n_samples && num_dst_samples == num_src_samples) in iterate()
4907 …else if (test_case.m_dst_n_samples == test_case.m_src_n_samples && num_dst_samples != num_src_samp… in iterate()
4915 …gl.copyImageSubData(m_src_tex_name, test_case.m_src_target, 0 /* srcLevel */, 0 /* srcX */, 0 /* s… in iterate()
4916 0 /* srcZ */, m_dst_tex_name, test_case.m_dst_target, 0 /* dstLevel */, 0 /* dstX */, in iterate()
4945 << ". Source target: " << glu::getTextureTargetStr(test_case.m_src_target) in iterate()
4946 << " samples: " << test_case.m_src_n_samples in iterate()
4947 << ", destination target: " << glu::getTextureTargetStr(test_case.m_dst_target) in iterate()
4948 << " samples: " << test_case.m_dst_n_samples << tcu::TestLog::EndMessage; in iterate()
5004 testCase test_case = { in IncompatibleFormatsCompressionTest() local
5009 m_test_cases.push_back(test_case); in IncompatibleFormatsCompressionTest()
5014 testCase test_case = { in IncompatibleFormatsCompressionTest() local
5019 m_test_cases.push_back(test_case); in IncompatibleFormatsCompressionTest()
5035 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local
5040 …m_dst_tex_name = Utils::prepareTex16x16x6(m_context, test_case.m_tex_target, test_case.m_dst_inter… in iterate()
5041 test_case.m_dst_format, test_case.m_dst_type, temp); in iterate()
5042 …m_src_tex_name = Utils::prepareTex16x16x6(m_context, test_case.m_tex_target, test_case.m_src_inter… in iterate()
5043 test_case.m_src_format, test_case.m_src_type, temp); in iterate()
5046 …Utils::makeTextureComplete(m_context, test_case.m_tex_target, m_dst_tex_name, 0 /* base */, 0 /* m… in iterate()
5047 …Utils::makeTextureComplete(m_context, test_case.m_tex_target, m_src_tex_name, 0 /* base */, 0 /* m… in iterate()
5056 …gl.copyImageSubData(m_src_tex_name, test_case.m_tex_target, 0 /* srcLevel */, 0 /* srcX */, 0 /* s… in iterate()
5057 0 /* srcZ */, m_dst_tex_name, test_case.m_tex_target, 0 /* dstLevel */, 0 /* dstX */, in iterate()
5062 result = (test_case.m_expected_result == error); in iterate()
5083 …<< tcu::TestLog::Message << "Failure. Expected result: " << glu::getErrorStr(test_case.m_expected_… in iterate()
5085 << ". Texture target: " << glu::getTextureTargetStr(test_case.m_tex_target) in iterate()
5086 << ". Source format: " << glu::getInternalFormatParameterStr(test_case.m_src_internal_format) in iterate()
5087 … << ". Destination format: " << glu::getInternalFormatParameterStr(test_case.m_dst_internal_format) in iterate()
5141 const testCase test_case = { arg_types[dst], !!dst_valid, arg_types[src], !!src_valid, in InvalidObjectTest() local
5144 m_test_cases.push_back(test_case); in InvalidObjectTest()
5162 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local
5167 if (GL_RENDERBUFFER == test_case.m_dst_target) in iterate()
5174 …Utils::prepareTex16x16x6(m_context, test_case.m_dst_target, GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, t… in iterate()
5177 …Utils::makeTextureComplete(m_context, test_case.m_dst_target, m_dst_name, 0 /* base */, 0 /* max *… in iterate()
5180 if (GL_RENDERBUFFER == test_case.m_src_target) in iterate()
5187 …Utils::prepareTex16x16x6(m_context, test_case.m_src_target, GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, t… in iterate()
5190 …Utils::makeTextureComplete(m_context, test_case.m_src_target, m_src_name, 0 /* base */, 0 /* max *… in iterate()
5194 if (!test_case.m_dst_valid) in iterate()
5196 Utils::deleteTexture(m_context, test_case.m_dst_target, m_dst_name); in iterate()
5199 if (!test_case.m_src_valid) in iterate()
5201 Utils::deleteTexture(m_context, test_case.m_src_target, m_src_name); in iterate()
5211 …gl.copyImageSubData(m_src_name, test_case.m_src_target, 0 /* srcLevel */, 0 /* srcX */, 0 /* srcY … in iterate()
5212 … m_dst_name, test_case.m_dst_target, 0 /* dstLevel */, 0 /* dstX */, 0 /* dstY */, 0 /* dstZ */, in iterate()
5217 result = (test_case.m_expected_result == error); in iterate()
5238 …<< tcu::TestLog::Message << "Failure. Expected result: " << glu::getErrorStr(test_case.m_expected_… in iterate()
5240 << ". Destination target: " << glu::getTextureTargetStr(test_case.m_dst_target) in iterate()
5241 << ". Destination valid: " << (test_case.m_src_valid ? "true" : "false") in iterate()
5242 << ". Source target: " << glu::getTextureTargetStr(test_case.m_dst_target) in iterate()
5243 …<< ". Source valid: " << (test_case.m_dst_valid ? "true" : "false") << "." << tcu::TestLog::EndMes… in iterate()
5258 const testCase& test_case = m_test_cases[m_test_case_index]; in clean() local
5261 if (test_case.m_dst_valid) in clean()
5263 if (GL_RENDERBUFFER == test_case.m_dst_target) in clean()
5272 if (test_case.m_src_valid) in clean()
5274 if (GL_RENDERBUFFER == test_case.m_src_target) in clean()
5303 testCase test_case = { tex_target, 0, 0, GL_NO_ERROR }; in NonExistentMipMapTest() local
5310 m_test_cases.push_back(test_case); in NonExistentMipMapTest()
5313 test_case.m_expected_result = GL_INVALID_VALUE; in NonExistentMipMapTest()
5315 test_case.m_dst_level = 1; in NonExistentMipMapTest()
5316 test_case.m_src_level = 0; in NonExistentMipMapTest()
5317 m_test_cases.push_back(test_case); in NonExistentMipMapTest()
5319 test_case.m_dst_level = 0; in NonExistentMipMapTest()
5320 test_case.m_src_level = 1; in NonExistentMipMapTest()
5321 m_test_cases.push_back(test_case); in NonExistentMipMapTest()
5323 test_case.m_dst_level = 1; in NonExistentMipMapTest()
5324 test_case.m_src_level = 1; in NonExistentMipMapTest()
5325 m_test_cases.push_back(test_case); in NonExistentMipMapTest()
5340 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local
5346 …Utils::prepareTex16x16x6(m_context, test_case.m_tex_target, GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, t… in iterate()
5348 …Utils::prepareTex16x16x6(m_context, test_case.m_tex_target, GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, t… in iterate()
5351 …Utils::makeTextureComplete(m_context, test_case.m_tex_target, m_dst_tex_name, 0 /* base */, 0 /* m… in iterate()
5352 …Utils::makeTextureComplete(m_context, test_case.m_tex_target, m_src_tex_name, 0 /* base */, 0 /* m… in iterate()
5361 …gl.copyImageSubData(m_src_tex_name, test_case.m_tex_target, test_case.m_src_level, 0 /* srcX */, 0… in iterate()
5362 0 /* srcZ */, m_dst_tex_name, test_case.m_tex_target, test_case.m_dst_level, 0 /* dstX */, in iterate()
5367 result = (test_case.m_expected_result == error); in iterate()
5389 …<< tcu::TestLog::Message << "Failure. Expected result: " << glu::getErrorStr(test_case.m_expected_… in iterate()
5391 << ". Texture target: " << glu::getTextureTargetStr(test_case.m_tex_target) in iterate()
5392 … << ", source level: " << test_case.m_src_level << ", destination level: " << test_case.m_dst_level in iterate()
5513 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local
5519 …Utils::prepareTex16x16x6(m_context, test_case.m_tex_target, GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, t… in iterate()
5521 …Utils::prepareTex16x16x6(m_context, test_case.m_tex_target, GL_RGBA8, GL_RGBA, GL_UNSIGNED_BYTE, t… in iterate()
5524 …Utils::makeTextureComplete(m_context, test_case.m_tex_target, m_dst_tex_name, 0 /* base */, 0 /* m… in iterate()
5525 …Utils::makeTextureComplete(m_context, test_case.m_tex_target, m_src_tex_name, 0 /* base */, 0 /* m… in iterate()
5534 …gl.copyImageSubData(m_src_tex_name, test_case.m_tex_target, 0 /* level */, test_case.m_src_x /* sr… in iterate()
5535 test_case.m_src_y /* srcY */, test_case.m_src_z /* srcZ */, m_dst_tex_name, in iterate()
5536 test_case.m_tex_target, 0 /* level */, test_case.m_dst_x /* dstX */, in iterate()
5537 test_case.m_dst_y /* dstY */, test_case.m_dst_z /* dstZ */, m_region_width /* srcWidth */, in iterate()
5538 test_case.m_height /* srcHeight */, test_case.m_depth /* srcDepth */); in iterate()
5542 result = (test_case.m_expected_result == error); in iterate()
5564 …<< tcu::TestLog::Message << "Failure. Expected result: " << glu::getErrorStr(test_case.m_expected_… in iterate()
5566 << ". Texture target: " << glu::getTextureTargetStr(test_case.m_tex_target) << ", source: [" in iterate()
5567 …<< test_case.m_src_x << ", " << test_case.m_src_y << ", " << test_case.m_src_z << "], destination:… in iterate()
5568 << test_case.m_src_x << ", " << test_case.m_src_y << ", " << test_case.m_src_z in iterate()
5569 << "], depth: " << test_case.m_depth << tcu::TestLog::EndMessage; in iterate()
5583 const testCase& test_case = m_test_cases[m_test_case_index]; in clean() local
5586 Utils::deleteTexture(m_context, test_case.m_tex_target, m_dst_tex_name); in clean()
5587 Utils::deleteTexture(m_context, test_case.m_tex_target, m_src_tex_name); in clean()
5662 const testCase& test_case = m_test_cases[m_test_case_index]; in iterate() local
5683 gl.copyImageSubData(m_src_tex_name, GL_TEXTURE_2D, 0 /* level */, test_case.m_src_x /* srcX */, in iterate()
5684 test_case.m_src_y /* srcY */, 0 /* srcZ */, m_dst_tex_name, GL_TEXTURE_2D, 0 /* level */, in iterate()
5685 test_case.m_dst_x /* dstX */, test_case.m_dst_y /* dstY */, 0 /* dstZ */, in iterate()
5686 test_case.m_width /* srcWidth */, test_case.m_height /* srcHeight */, 1 /* srcDepth */); in iterate()
5690 result = (test_case.m_expected_result == error); in iterate()
5712 …<< tcu::TestLog::Message << "Failure. Expected result: " << glu::getErrorStr(test_case.m_expected_… in iterate()
5713 … " got: " << glu::getErrorStr(error) << ". source: [" << test_case.m_src_x << ", " << test_case.m_… in iterate()
5714 …<< "], destination: [" << test_case.m_src_x << ", " << test_case.m_src_y << "], size: " << test_ca… in iterate()
5715 << " x " << test_case.m_height << tcu::TestLog::EndMessage; in iterate()
5768 const testCase& test_case = testCases[m_test_case_index]; in iterate() local
5771 …m_dst_tex_name = createTexture(width, height, test_case.m_internal_format, test_case.m_type, &data… in iterate()
5774 …m_src_tex_name = createTexture(width, height, test_case.m_internal_format, test_case.m_type, &data… in iterate()
5817 << ". Texture internal format: " << glu::getTextureFormatStr(test_case.m_internal_format) in iterate()