• Home
  • Raw
  • Download

Lines Matching refs:test_case

1994 		const _test_case& test_case	= *test_iterator;  in execute()  local
1996 test_case.dst_bo_is_sparse ? m_sparse_bos[test_case.dst_bo_sparse_id] : m_immutable_bo; in execute()
1998 test_case.src_bo_is_sparse ? m_sparse_bos[test_case.src_bo_sparse_id] : m_immutable_bo; in execute()
2026 m_gl.bufferPageCommitmentARB(GL_COPY_WRITE_BUFFER, test_case.dst_bo_commit_start_offset, in execute()
2027 test_case.dst_bo_commit_size, GL_TRUE); /* commit */ in execute()
2033 m_gl.bufferPageCommitmentARB(GL_COPY_WRITE_BUFFER, test_case.src_bo_commit_start_offset, in execute()
2034 test_case.src_bo_commit_size, GL_TRUE); /* commit */ in execute()
2054 m_gl.copyBufferSubData(GL_COPY_READ_BUFFER, GL_COPY_WRITE_BUFFER, test_case.src_bo_start_offset, in execute()
2055 test_case.dst_bo_start_offset, test_case.n_bytes_to_copy); in execute()
2081 …if (test_case.dst_bo_start_offset != 0 && test_case.dst_bo_commit_start_offset < test_case.dst_bo_… in execute()
2083 …DE_ASSERT(((test_case.dst_bo_start_offset - test_case.dst_bo_commit_start_offset) % sizeof(short))… in execute()
2086 (test_case.dst_bo_start_offset - test_case.dst_bo_commit_start_offset) / sizeof(short)); in execute()
2092 if (dst_data_offset >= test_case.dst_bo_commit_start_offset && in execute()
2093 dst_data_offset < test_case.dst_bo_commit_start_offset + test_case.dst_bo_commit_size) in execute()
2096 *(unsigned short*)((unsigned char*)test_case.dst_bo_ref_data + dst_data_offset); in execute()
2106 << ((test_case.dst_bo_is_sparse) ? "sparse buffer)" : "immutable buffer)") in execute()
2107 << ", commited region: " << test_case.dst_bo_commit_start_offset << ":" in execute()
2108 << (test_case.dst_bo_commit_start_offset + test_case.dst_bo_commit_size) in execute()
2109 << ", copy region: " << test_case.dst_bo_start_offset << ":" in execute()
2110 << (test_case.dst_bo_start_offset + test_case.n_bytes_to_copy) in execute()
2112 << ((test_case.src_bo_is_sparse) ? "sparse buffer)" : "immutable buffer)") in execute()
2113 << ", commited region: " << test_case.src_bo_commit_start_offset << ":" in execute()
2114 << (test_case.src_bo_commit_start_offset + test_case.src_bo_commit_size) in execute()
2115 << ", copy region: " << test_case.src_bo_start_offset << ":" in execute()
2116 << (test_case.src_bo_start_offset + test_case.n_bytes_to_copy) << ". Expected value of " in execute()
2128 …n_copied_short_value < test_case.n_bytes_to_copy / sizeof(short) && result_local; ++n_copied_short… in execute()
2131 static_cast<unsigned int>(test_case.src_bo_start_offset + sizeof(short) * n_copied_short_value); in execute()
2133 static_cast<unsigned int>(test_case.dst_bo_start_offset + sizeof(short) * n_copied_short_value); in execute()
2135 if (dst_data_offset >= test_case.dst_bo_commit_start_offset && in execute()
2136 dst_data_offset < test_case.dst_bo_commit_start_offset + test_case.dst_bo_commit_size && in execute()
2137 src_data_offset >= test_case.src_bo_commit_start_offset && in execute()
2138 src_data_offset < test_case.src_bo_commit_start_offset + test_case.src_bo_commit_size) in execute()
2141 *(unsigned short*)((unsigned char*)test_case.src_bo_ref_data + src_data_offset); in execute()
2150 << ((test_case.dst_bo_is_sparse) ? "sparse buffer)" : "immutable buffer)") in execute()
2151 << ", commited region: " << test_case.dst_bo_commit_start_offset << ":" in execute()
2152 << (test_case.dst_bo_commit_start_offset + test_case.dst_bo_commit_size) in execute()
2153 << ", copy region: " << test_case.dst_bo_start_offset << ":" in execute()
2154 << (test_case.dst_bo_start_offset + test_case.n_bytes_to_copy) in execute()
2156 << ((test_case.src_bo_is_sparse) ? "sparse buffer)" : "immutable buffer)") in execute()
2157 << ", commited region: " << test_case.src_bo_commit_start_offset << ":" in execute()
2158 << (test_case.src_bo_commit_start_offset + test_case.src_bo_commit_size) in execute()
2159 << ", copy region: " << test_case.src_bo_start_offset << ":" in execute()
2160 << (test_case.src_bo_start_offset + test_case.n_bytes_to_copy) in execute()
2172 test_case.dst_bo_commit_start_offset + test_case.dst_bo_commit_size; in execute()
2173 …const unsigned int copy_region_end_offset = test_case.dst_bo_start_offset + test_case.n_bytes_to_c… in execute()
2186 if (dst_data_offset >= test_case.dst_bo_commit_start_offset && in execute()
2187 dst_data_offset < test_case.dst_bo_commit_start_offset + test_case.dst_bo_commit_size) in execute()
2190 *(unsigned short*)((unsigned char*)test_case.dst_bo_ref_data + dst_data_offset); in execute()
2200 << ((test_case.dst_bo_is_sparse) ? "sparse buffer)" : "immutable buffer)") in execute()
2201 << ", commited region: " << test_case.dst_bo_commit_start_offset << ":" in execute()
2202 << (test_case.dst_bo_commit_start_offset + test_case.dst_bo_commit_size) in execute()
2203 << ", copy region: " << test_case.dst_bo_start_offset << ":" in execute()
2204 << (test_case.dst_bo_start_offset + test_case.n_bytes_to_copy) in execute()
2206 << ((test_case.src_bo_is_sparse) ? "sparse buffer)" : "immutable buffer)") in execute()
2207 << ", commited region: " << test_case.src_bo_commit_start_offset << ":" in execute()
2208 << (test_case.src_bo_commit_start_offset + test_case.src_bo_commit_size) in execute()
2209 << ", copy region: " << test_case.src_bo_start_offset << ":" in execute()
2210 << (test_case.src_bo_start_offset + test_case.n_bytes_to_copy) << ". Expected value of " in execute()
2526 _test_case test_case; in initTestCases() local
2528 test_case.dst_bo_commit_size = dst_bo_commit_size; in initTestCases()
2529 test_case.dst_bo_commit_start_offset = dst_bo_commit_start_offset; in initTestCases()
2530 test_case.dst_bo_sparse_id = dst_bo_sparse_id; in initTestCases()
2531 test_case.dst_bo_is_sparse = dst_bo_is_sparse; in initTestCases()
2532 test_case.dst_bo_ref_data = dst_bo_ref_data; in initTestCases()
2533 test_case.dst_bo_start_offset = static_cast<glw::GLint>(sizeof(short) * n_test_case); in initTestCases()
2534 test_case.n_bytes_to_copy = static_cast<glw::GLint>( in initTestCases()
2535 m_sparse_bo_size_rounded / 2 - test_case.dst_bo_start_offset - sizeof(short) * n_test_case); in initTestCases()
2536 test_case.src_bo_commit_size = src_bo_commit_size; in initTestCases()
2537 test_case.src_bo_commit_start_offset = src_bo_commit_start_offset; in initTestCases()
2538 test_case.src_bo_sparse_id = src_bo_sparse_id; in initTestCases()
2539 test_case.src_bo_is_sparse = src_bo_is_sparse; in initTestCases()
2540 test_case.src_bo_ref_data = src_bo_ref_data; in initTestCases()
2541 test_case.src_bo_start_offset = m_sparse_bo_size_rounded / 2; in initTestCases()
2543 DE_ASSERT(test_case.dst_bo_commit_size >= 0); in initTestCases()
2544 DE_ASSERT(test_case.dst_bo_commit_start_offset >= 0); in initTestCases()
2545 DE_ASSERT(test_case.dst_bo_ref_data != DE_NULL); in initTestCases()
2546 DE_ASSERT(test_case.dst_bo_start_offset >= 0); in initTestCases()
2547 DE_ASSERT(test_case.n_bytes_to_copy >= 0); in initTestCases()
2548 DE_ASSERT(test_case.src_bo_commit_size >= 0); in initTestCases()
2549 DE_ASSERT(test_case.src_bo_commit_start_offset >= 0); in initTestCases()
2550 DE_ASSERT(test_case.src_bo_ref_data != DE_NULL); in initTestCases()
2551 DE_ASSERT(test_case.src_bo_start_offset >= 0); in initTestCases()
2553 m_test_cases.push_back(test_case); in initTestCases()