Home
last modified time | relevance | path

Searched refs:elementNdx (Results 1 – 25 of 25) sorted by relevance

/third_party/vk-gl-cts/framework/delibs/decpp/
DdeAppendList.hpp175 size_t elementNdx = 0; in ~AppendList() local
185 for (; elementNdx < min(m_numElements, (delBlock->blockNdx+1)*m_blockSize); ++elementNdx) in ~AppendList()
186 delBlock->elements[elementNdx%m_blockSize].~ElementType(); in ~AppendList()
191 DE_ASSERT(elementNdx == m_numElements); in ~AppendList()
199 size_t elementNdx = 0; in clear() local
209 for (; elementNdx < min(m_numElements, (delBlock->blockNdx+1)*m_blockSize); ++elementNdx) in clear()
210 delBlock->elements[elementNdx%m_blockSize].~ElementType(); in clear()
216 DE_ASSERT(elementNdx == m_numElements); in clear()
233 const size_t elementNdx = deAtomicIncrementUSize(&m_numElements) - 1; in append() local
234 const size_t blockNdx = elementNdx / m_blockSize; in append()
[all …]
DdeArrayBuffer.hpp66 T* getElementPtr (size_t elementNdx) throw();
67 const T* getElementPtr (size_t elementNdx) const throw();
202 T* ArrayBuffer<T,Alignment,Stride>::getElementPtr (size_t elementNdx) throw() in getElementPtr() argument
204 return (T*)(((deUint8*)m_ptr) + Stride * elementNdx); in getElementPtr()
208 const T* ArrayBuffer<T,Alignment,Stride>::getElementPtr (size_t elementNdx) const throw() in getElementPtr()
210 return (T*)(((deUint8*)m_ptr) + Stride * elementNdx); in getElementPtr()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktAtomicOperationTests.cpp521 for (int elementNdx = 0; elementNdx < NUM_ELEMENTS / 2; elementNdx++) in checkOperation() local
524 const T originalInout = *reinterpret_cast<const T*>(&original.inout[elementNdx]); in checkOperation()
525 const T input0 = *reinterpret_cast<const T*>(&original.input[elementNdx]); in checkOperation()
526 const T input1 = *reinterpret_cast<const T*>(&original.input[elementNdx + NUM_ELEMENTS / 2]); in checkOperation()
584 if (elementNdx % 2 == 0) in checkOperation()
603 const T resIo = result.inout[elementNdx]; in checkOperation()
604 const T resOutput0 = result.output[elementNdx]; in checkOperation()
605 const T resOutput1 = result.output[elementNdx + NUM_ELEMENTS / 2]; in checkOperation()
611 errorMessage << "ERROR: Result value check failed at index " << elementNdx in checkOperation()
618 << tcu::toHex(resOutput1) << ". Using Input0 = " << tcu::toHex(original.input[elementNdx]) in checkOperation()
[all …]
/third_party/vk-gl-cts/framework/randomshaders/
DrsgVariableValue.hpp98 … (int elementNdx) const { return ConstStridedValueAccess(getType().getElementType(), m_value + St… in arrayElement()
131 …nt elementNdx) { return StridedValueAccess(this->getType().getElementType(), this->m_value + Strid… in arrayElement() argument
209 ConstValueRangeAccess arrayElement (int elementNdx) const;
228 inline ConstValueRangeAccess ConstValueRangeAccess::arrayElement (int elementNdx) const in arrayElement()
230 int offset = m_type->getElementScalarOffset(elementNdx); in arrayElement()
250 ValueRangeAccess arrayElement (int elementNdx);
259 inline ValueRangeAccess ValueRangeAccess::arrayElement (int elementNdx) in arrayElement() argument
261 int offset = m_type->getElementScalarOffset(elementNdx); in arrayElement()
DrsgProgramExecutor.cpp142 for (int elementNdx = 0; elementNdx < numElements; elementNdx++) in interpolateVertexInput() local
145 getVertexInterpolationCoords(xd, yd, x, y, elementNdx); in interpolateVertexInput()
146 …nent(elementNdx).asFloat(dstComp) = interpolateVertex(valueRange.getMin().component(elementNdx).as… in interpolateVertexInput()
DrsgVariableType.cpp124 int VariableType::getElementScalarOffset (int elementNdx) const in getElementScalarOffset()
127 return elementNdx * getElementType().getScalarSize(); in getElementScalarOffset()
DrsgBinaryOps.cpp968 for (int elementNdx = 0; elementNdx < numElements; elementNdx++) in EqualityComparisonOp() local
973 ValueRangeAccess a = this->m_leftValueRange.asAccess().component(elementNdx); in EqualityComparisonOp()
974 ValueRangeAccess b = this->m_rightValueRange.asAccess().component(elementNdx); in EqualityComparisonOp()
DrsgVariableType.hpp147 int getElementScalarOffset (int elementNdx) const;
/third_party/vk-gl-cts/modules/glshared/
DglsRandomShaderCase.cpp430 for (int elementNdx = 0; elementNdx < numElements; elementNdx++) in operator <<() local
432 if (elementNdx > 0) in operator <<()
437 …case rsg::VariableType::TYPE_FLOAT: message << value.component(elementNdx).asFloat(); break; in operator <<()
438 case rsg::VariableType::TYPE_INT: message << value.component(elementNdx).asInt(); break; in operator <<()
439 …case rsg::VariableType::TYPE_BOOL: message << (value.component(elementNdx).asBool() ? "true" : "… in operator <<()
440 …case rsg::VariableType::TYPE_SAMPLER_2D: message << value.component(elementNdx).asInt(); bre… in operator <<()
441 …case rsg::VariableType::TYPE_SAMPLER_CUBE: message << value.component(elementNdx).asInt(); b… in operator <<()
DglsUniformBlockCase.cpp945 …Src (std::ostringstream& src, const UniformLayoutEntry& entry, const void* basePtr, int elementNdx) in generateValueSrc() argument
950 …const deUint8* elemPtr = (const deUint8*)basePtr + entry.offset + (isArray ? elementNdx*entry.ar… in generateValueSrc()
1035 for (int elementNdx = 0; elementNdx < type.getArraySize(); elementNdx++) in generateCompareSrc() local
1037 std::string op = string("[") + de::toString(elementNdx) + "]"; in generateCompareSrc()
1281 for (int elementNdx = 0; elementNdx < dstEntry.size; elementNdx++) in copyUniformData() local
1283 deUint8* dstElemPtr = dstBasePtr + elementNdx*dstEntry.arrayStride; in copyUniformData()
1284 const deUint8* srcElemPtr = srcBasePtr + elementNdx*srcEntry.arrayStride; in copyUniformData()
DglsDrawTest.cpp1686 for (int elementNdx = 0; elementNdx < elementCount; ++elementNdx) in createIndices() local
1706 alignmentSafeAssignment<T>(writePtr + elementSize * elementNdx, T(ndx)); in createIndices()
/third_party/vk-gl-cts/framework/referencerenderer/
DrrVertexAttrib.cpp497 …const int elementNdx = (vertexAttrib.instanceDivisor != 0) ? baseInstanceNdx + (instanceNdx / ver… in readVertexAttrib() local
500 const int byteOffset = elementNdx*stride; in readVertexAttrib()
517 …const int elementNdx = (vertexAttrib.instanceDivisor != 0) ? baseInstanceNdx + (instanceNdx / ver… in readVertexAttrib() local
520 const int byteOffset = elementNdx*stride; in readVertexAttrib()
537 …const int elementNdx = (vertexAttrib.instanceDivisor != 0) ? baseInstanceNdx + (instanceNdx / ver… in readVertexAttrib() local
540 const int byteOffset = elementNdx*stride; in readVertexAttrib()
DrrRenderer.hpp94 size_t getIndex (size_t elementNdx) const;
95 bool isRestartIndex (size_t elementNdx, deUint32 restartIndex) const;
DrrRenderer.cpp1719 size_t PrimitiveList::getIndex (size_t elementNdx) const in getIndex()
1724 int index = m_baseVertex + (int)readIndexArray(m_indexType, m_indices, elementNdx); in getIndex()
1730 return (size_t)(m_baseVertex) + elementNdx; in getIndex()
1733 bool PrimitiveList::isRestartIndex (size_t elementNdx, deUint32 restartIndex) const in isRestartIndex() argument
1737 return readIndexArray(m_indexType, m_indices, elementNdx) == restartIndex; in isRestartIndex()
1739 return elementNdx == (size_t)restartIndex; in isRestartIndex()
1785 for (size_t elementNdx = 0; elementNdx < command.primitives.getNumElements(); ++elementNdx) in drawInstanced() local
1791 while (elementNdx < command.primitives.getNumElements() && in drawInstanced()
1792 …!(command.state.restart.enabled && command.primitives.isRestartIndex(elementNdx, command.state.res… in drawInstanced()
1796 vertexPackets[numVertexPackets]->vertexNdx = (int)command.primitives.getIndex(elementNdx); in drawInstanced()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsm8bitStorageTests.cpp196 for(int elementNdx = 0; elementNdx < structData.structArraySize; ++elementNdx) in info8bitStd140() local
270 for(int elementNdx = 0; elementNdx < structData.structArraySize; ++elementNdx) in info8bitStd430() local
343 for(int elementNdx = 0; elementNdx < structData.structArraySize; ++elementNdx) in info32bitStd140() local
416 for(int elementNdx = 0; elementNdx < structData.structArraySize; ++elementNdx) in info32bitStd430() local
465 for(int elementNdx = 0; elementNdx < structData.structArraySize; ++elementNdx) in infoMixStd140() local
532 for(int elementNdx = 0; elementNdx < structData.structArraySize; ++elementNdx) in infoMixStd430() local
DvktSpvAsmImageSamplerTests.cpp1166 …for (deUint32 elementNdx = 0; elementNdx < static_cast<deUint32>(expectedBytes.size() / sizeof(flo… in verifyDepthCompareResult() local
1168 const float input = expectedAsFloat[elementNdx]; in verifyDepthCompareResult()
1169 const float result = returnedAsFloat[elementNdx]; in verifyDepthCompareResult()
DvktSpvAsm16bitStorageTests.cpp396 for(int elementNdx = 0; elementNdx < structData.structArraySize; ++elementNdx) in info16bitStd140() local
475 for(int elementNdx = 0; elementNdx < structData.structArraySize; ++elementNdx) in info16bitStd430() local
549 for(int elementNdx = 0; elementNdx < structData.structArraySize; ++elementNdx) in info32bitStd140() local
627 for(int elementNdx = 0; elementNdx < structData.structArraySize; ++elementNdx) in info32bitStd430() local
700 for(int elementNdx = 0; elementNdx < structData.structArraySize; ++elementNdx) in infoMixStd140() local
772 for(int elementNdx = 0; elementNdx < structData.structArraySize; ++elementNdx) in infoMixStd430() local
DvktSpvAsmTypeTests.cpp2370 for (deUint32 elementNdx = 0u; elementNdx < numElements; elementNdx++) in getConstantDataset() local
2371 outputDataset.push_back(inputDataset[elementNdx]); in getConstantDataset()
2375 for (deUint32 elementNdx = 0; elementNdx < numElements * m_vectorSize; elementNdx++) in getConstantDataset() local
2376 outputDataset.push_back(inputDataset[getConstituentIndex(elementNdx, m_vectorSize)]); in getConstantDataset()
DvktSpvAsmInstructionTests.cpp13274 for (deUint32 elementNdx = 0; elementNdx < numElements; ++elementNdx) in createFloat16CompositeConstructSet() local
13284 …expectedIterationOutput[fieldModifiedMulIndex] = tcu::Float16(float(elementNdx * fieldModifier)).b… in createFloat16CompositeConstructSet()
13285 …expectedIterationOutput[fieldModifiedAddIndex] = tcu::Float16(float(elementNdx + fieldModifier)).b… in createFloat16CompositeConstructSet()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcUniformBlockCase.cpp857 …eSrc(std::ostringstream& src, const UniformLayoutEntry& entry, const void* basePtr, int elementNdx) in generateValueSrc() argument
862 …const deUint8* elemPtr = (const deUint8*)basePtr + entry.offset + (isArray ? elementNdx * entry.ar… in generateValueSrc()
957 for (int elementNdx = 0; elementNdx < type.getArraySize(); elementNdx++) in generateCompareSrc() local
959 std::string op = string("[") + de::toString(elementNdx) + "]"; in generateCompareSrc()
1224 for (int elementNdx = 0; elementNdx < dstEntry.size; elementNdx++) in copyUniformData() local
1226 deUint8* dstElemPtr = dstBasePtr + elementNdx * dstEntry.arrayStride; in copyUniformData()
1227 const deUint8* srcElemPtr = srcBasePtr + elementNdx * srcEntry.arrayStride; in copyUniformData()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/
DvktSSBOLayoutCase.cpp1529 for (int elementNdx = 0; elementNdx < dstArraySize; elementNdx++) in copyBufferVarData() local
1531 deUint8* const dstElemPtr = dstTopPtr + elementNdx*dstArrayStride; in copyBufferVarData()
1532 const deUint8* const srcElemPtr = srcTopPtr + elementNdx*srcArrayStride; in copyBufferVarData()
1740 for (int elementNdx = 0; elementNdx < resArraySize; elementNdx++) in compareBufferVarData() local
1742 deUint8* const resElemPtr = resTopPtr + elementNdx*resArrayStride; in compareBufferVarData()
1743 const deUint8* const refElemPtr = refTopPtr + elementNdx*refArrayStride; in compareBufferVarData()
1775 …< refEntry.name << ", top-level ndx " << topElemNdx << ", bottom-level ndx " << elementNdx << ":\n" in compareBufferVarData()
1797 …< refEntry.name << ", top-level ndx " << topElemNdx << ", bottom-level ndx " << elementNdx << ":\n" in compareBufferVarData()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fSSBOLayoutCase.cpp1508 for (int elementNdx = 0; elementNdx < dstArraySize; elementNdx++) in copyBufferVarData() local
1510 deUint8* const dstElemPtr = dstTopPtr + elementNdx*dstArrayStride; in copyBufferVarData()
1511 const deUint8* const srcElemPtr = srcTopPtr + elementNdx*srcArrayStride; in copyBufferVarData()
1718 for (int elementNdx = 0; elementNdx < resArraySize; elementNdx++) in compareBufferVarData() local
1720 deUint8* const resElemPtr = resTopPtr + elementNdx*resArrayStride; in compareBufferVarData()
1721 const deUint8* const refElemPtr = refTopPtr + elementNdx*refArrayStride; in compareBufferVarData()
1753 …< refEntry.name << ", top-level ndx " << topElemNdx << ", bottom-level ndx " << elementNdx << ":\n" in compareBufferVarData()
1775 …< refEntry.name << ", top-level ndx " << topElemNdx << ", bottom-level ndx " << elementNdx << ":\n" in compareBufferVarData()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/
DvktTransformFeedbackFuzzLayoutCase.cpp1205 …c (std::ostringstream& src, const InterfaceLayoutEntry& entry, const void* basePtr, int elementNdx) in generateValueSrc() argument
1210 …const deUint8* elemPtr = (const deUint8*)basePtr + entry.offset + (isArray ? elementNdx * entry.… in generateValueSrc()
1439 for (int elementNdx = 0; elementNdx < type.getArraySize(); elementNdx++) in generateAssignment() local
1441 const std::string op = std::string("[") + de::toString(elementNdx) + "]"; in generateAssignment()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ubo/
DvktUniformBlockCase.cpp1198 …Src (std::ostringstream& src, const UniformLayoutEntry& entry, const void* basePtr, int elementNdx) in generateValueSrc() argument
1203 …const deUint8* elemPtr = (const deUint8*)basePtr + entry.offset + (isArray ? elementNdx * entry.… in generateValueSrc()
1498 for (int elementNdx = 0; elementNdx < type.getArraySize(); elementNdx++) in generateCompareSrc() local
1500 std::string op = std::string("[") + de::toString(elementNdx) + "]"; in generateCompareSrc()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelinePushConstantTests.cpp832 for (deUint32 elementNdx = 0u; elementNdx < numBytes / 4u; elementNdx++) in generateColorData() local