Lines Matching refs:numBytes

68 void fillWithRandomBytes (deUint8* ptr, int numBytes, deUint32 seed)  in fillWithRandomBytes()  argument
70 …std::copy(tcu::RandomValueIterator<deUint8>::begin(seed, numBytes), tcu::RandomValueIterator<deUin… in fillWithRandomBytes()
73 …l compareByteArrays (tcu::TestLog& log, const deUint8* resPtr, const deUint8* refPtr, int numBytes) in compareByteArrays() argument
84 for (;ndx < numBytes; ndx++) in compareByteArrays()
233 void ReferenceBuffer::setSize (int numBytes) in setSize() argument
235 m_data.resize(numBytes); in setSize()
238 void ReferenceBuffer::setData (int numBytes, const deUint8* bytes) in setData() argument
240 m_data.resize(numBytes); in setData()
241 std::copy(bytes, bytes+numBytes, m_data.begin()); in setData()
244 void ReferenceBuffer::setSubData (int offset, int numBytes, const deUint8* bytes) in setSubData() argument
246 …DE_ASSERT(de::inBounds(offset, 0, (int)m_data.size()) && de::inRange(offset+numBytes, offset, (int… in setSubData()
247 std::copy(bytes, bytes+numBytes, m_data.begin()+offset); in setSubData()
259 void BufferWriterBase::write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUi… in write() argument
262 write(buffer, offset, numBytes, bytes); in write()
284 void BufferWriter::write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes) in write() argument
286 DE_ASSERT(numBytes >= getMinSize()); in write()
288 DE_ASSERT((offset+numBytes)%getAlignment() == 0); in write()
289 return m_writer->write(buffer, offset, numBytes, bytes); in write()
292 void BufferWriter::write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, deUint32… in write() argument
294 DE_ASSERT(numBytes >= getMinSize()); in write()
296 DE_ASSERT((offset+numBytes)%getAlignment() == 0); in write()
297 return m_writer->write(buffer, offset, numBytes, bytes, targetHint); in write()
302 void BufferSubDataWriter::write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes) in write() argument
304 write(buffer, offset, numBytes, bytes, GL_ARRAY_BUFFER); in write()
307 void BufferSubDataWriter::write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, d… in write() argument
310 glBufferSubData(target, offset, numBytes, bytes); in write()
317 void BufferWriteMapWriter::write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes) in write() argument
319 write(buffer, offset, numBytes, bytes, GL_ARRAY_BUFFER); in write()
322 void BufferWriteMapWriter::write (deUint32 buffer, int offset, int numBytes, const deUint8* bytes, … in write() argument
326 void* ptr = glMapBufferRange(target, offset, numBytes, GL_MAP_WRITE_BIT); in write()
329 deMemcpy(ptr, bytes, numBytes); in write()
346 …ase::verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes, deUint32 targetH… in verify() argument
349 return verify(buffer, reference, offset, numBytes); in verify()
372 bool BufferVerifier::verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes) in verify() argument
374 DE_ASSERT(numBytes >= getMinSize()); in verify()
376 DE_ASSERT((offset+numBytes)%getAlignment() == 0); in verify()
377 return m_verifier->verify(buffer, reference, offset, numBytes); in verify()
380 bool BufferVerifier::verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes, d… in verify() argument
382 DE_ASSERT(numBytes >= getMinSize()); in verify()
384 DE_ASSERT((offset+numBytes)%getAlignment() == 0); in verify()
385 return m_verifier->verify(buffer, reference, offset, numBytes, targetHint); in verify()
390 bool BufferMapVerifier::verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes) in verify() argument
392 return verify(buffer, reference, offset, numBytes, GL_ARRAY_BUFFER); in verify()
395 bool BufferMapVerifier::verify (deUint32 buffer, const deUint8* reference, int offset, int numBytes in verify() argument
401 mapPtr = (const deUint8*)glMapBufferRange(target, offset, numBytes, GL_MAP_READ_BIT); in verify()
405 isOk = compareByteArrays(m_log, mapPtr, reference+offset, numBytes); in verify()
568 bool VertexArrayVerifier::verify (deUint32 buffer, const deUint8* refPtr, int offset, int numBytes) in verify() argument
587 DE_ASSERT(numBytes >= numBytesInQuad); // Can't render full quad with smaller buffers. in verify()
614 while (numVerified < numBytes) in verify()
616 int numRemaining = numBytes-numVerified; in verify()
619 int curOffset = isLeftoverBatch ? (numBytes-numBytesInQuad) : numVerified; in verify()
626 DE_ASSERT(de::inBounds(curOffset, 0, numBytes)); in verify()
627 DE_ASSERT(de::inRange(curOffset+numBytesToVerify, curOffset, numBytes)); in verify()
757 bool IndexArrayVerifier::verify (deUint32 buffer, const deUint8* refPtr, int offset, int numBytes) in verify() argument
798 while (numVerified < numBytes) in verify()
800 int numRemaining = numBytes-numVerified; in verify()
803 int curOffset = isLeftoverBatch ? (numBytes-minBytesPerBatch) : numVerified; in verify()