Home
last modified time | relevance | path

Searched refs:outputAllocs (Results 1 – 11 of 11) sorted by relevance

/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmComputeShaderTestUtil.cpp33 bool verifyOutputWithEpsilon (const std::vector<AllocationSp>& outputAllocs, const std::vector<Reso… in verifyOutputWithEpsilon() argument
35 DE_ASSERT(outputAllocs.size() != 0); in verifyOutputWithEpsilon()
36 DE_ASSERT(outputAllocs.size() == expectedOutputs.size()); in verifyOutputWithEpsilon()
38 for (size_t outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in verifyOutputWithEpsilon()
47 memcpy(&actualFloats[0], outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size()); in verifyOutputWithEpsilon()
135 bool verifyOutput (const std::vector<Resource>&, const std::vector<AllocationSp>& outputAllocs, con… in verifyOutput() argument
138 return verifyOutputWithEpsilon(outputAllocs, expectedOutputs, log, epsilon); in verifyOutput()
DvktSpvAsmComputeShaderTestUtil.hpp161 …const std::vector<Resource>& inputs, const std::vector<AllocationSp>& outputAllocs, const std::vec… in compareWithRetvals() argument
163 if (outputAllocs.size() != 2 || inputs.size() != 1) in compareWithRetvals()
166 for (size_t i = 0; i < outputAllocs.size(); ++i) in compareWithRetvals()
168 const deUint32* values = reinterpret_cast<deUint32*>(outputAllocs[i]->getHostPtr()); in compareWithRetvals()
180 const deUint32 resultValue = *reinterpret_cast<deUint32*>(outputAllocs[0]->getHostPtr()); in compareWithRetvals()
397 const std::vector<AllocationSp>& outputAllocs,
DvktSpvAsmEmptyStructTests.cpp40 const std::vector<AllocationSp>& outputAllocs, in verifyResult() argument
44 for (deUint32 outputNdx = 0; outputNdx < static_cast<deUint32>(outputAllocs.size()); ++outputNdx) in verifyResult()
50 const deUint32* returned = static_cast<const deUint32*>(outputAllocs[outputNdx]->getHostPtr()); in verifyResult()
DvktSpvAsmWorkgroupMemoryTests.cpp56 const vector<AllocationSp>& outputAllocs, in checkResultsFloat16() argument
66 const deUint16* results = reinterpret_cast<const deUint16*>(outputAllocs.front()->getHostPtr()); in checkResultsFloat16()
85 const vector<AllocationSp>& outputAllocs, in checkResultsFloat32() argument
95 const deUint32* results = reinterpret_cast<const deUint32*>(outputAllocs.front()->getHostPtr()); in checkResultsFloat32()
121 const vector<AllocationSp>& outputAllocs, in checkResultsFloat64() argument
131 const deUint64* results = reinterpret_cast<const deUint64*>(outputAllocs.front()->getHostPtr()); in checkResultsFloat64()
DvktSpvAsmComputeShaderCase.cpp494 vector<AllocationSp> outputAllocs; in iterate() local
758 outputAllocs.push_back(de::SharedPtr<Allocation>(alloc.release())); in iterate()
874 invalidateMemory(vkdi, device, outputAllocs[outputNdx].get(), m_shaderSpec.coherentMemory); in iterate()
880 …if (!(*m_shaderSpec.verifyIO)(m_shaderSpec.inputs, outputAllocs, m_shaderSpec.outputs, m_context.g… in iterate()
892 … if (deMemCmp(&expectedBytes.front(), outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size())) in iterate()
895 const deUint8* ptrHost = static_cast<deUint8*>(outputAllocs[outputNdx]->getHostPtr()); in iterate()
DvktSpvAsm16bitStorageTests.cpp193 const vector<AllocationSp>& outputAllocs, in graphicsCheck16BitFloats() argument
197 if (outputAllocs.size() != originalFloats.size()) in graphicsCheck16BitFloats()
200 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in graphicsCheck16BitFloats()
205 const deUint16* returned = static_cast<const deUint16*>(outputAllocs[outputNdx]->getHostPtr()); in graphicsCheck16BitFloats()
220 const vector<AllocationSp>& outputAllocs, in graphicsCheck16BitFloats64() argument
224 if (outputAllocs.size() != originalFloats.size()) in graphicsCheck16BitFloats64()
227 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in graphicsCheck16BitFloats64()
232 const deUint16* returned = static_cast<const deUint16*>(outputAllocs[outputNdx]->getHostPtr()); in graphicsCheck16BitFloats64()
245 const vector<AllocationSp>& outputAllocs, in computeCheckBuffersFloats() argument
253 const deUint16 * expected = reinterpret_cast<const deUint16 *>(outputAllocs.front()->getHostPtr()); in computeCheckBuffersFloats()
[all …]
DvktSpvAsmCompositeInsertTests.cpp116 …put (const std::vector<Resource>& inputs, const vector<AllocationSp>& outputAllocs, const std::vec… in verifyMatrixOutput() argument
120 if (outputAllocs.size() != 1) in verifyMatrixOutput()
127 …const float* const outputAsFloat = static_cast<const float*>(outputAllocs[0]->getHo… in verifyMatrixOutput()
DvktSpvAsm8bitStorageTests.cpp160 const vector<AllocationSp>& outputAllocs, in computeCheckBuffers() argument
166 return deMemCmp(&result[0], outputAllocs.front()->getHostPtr(), result.size()) == 0; in computeCheckBuffers()
662 const vector<AllocationSp>& outputAllocs, in checkStruct() argument
666 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in checkStruct()
671 …const resultType* returned = static_cast<const resultType*>(outputAllocs[outputNdx]->getHostPtr()); in checkStruct()
682 const vector<AllocationSp>& outputAllocs, in checkUniformsArray() argument
690 for (deUint32 outputNdx = 0; outputNdx < static_cast<deUint32>(outputAllocs.size()); ++outputNdx) in checkUniformsArray()
696 …const resultType* returned = static_cast<const resultType*>(outputAllocs[outputNdx]->getHostPtr()); in checkUniformsArray()
716 const vector<AllocationSp>& outputAllocs, in checkUniformsArrayConstNdx() argument
724 for (deUint32 outputNdx = 0; outputNdx < static_cast<deUint32>(outputAllocs.size()); ++outputNdx) in checkUniformsArrayConstNdx()
[all …]
DvktSpvAsmInstructionTests.cpp1140 bool compareFUnord (const std::vector<Resource>& inputs, const vector<AllocationSp>& outputAllocs, … in compareFUnord() argument
1142 if (outputAllocs.size() != 1) in compareFUnord()
1154 const deInt32* const outputAsInt = static_cast<const deInt32*>(outputAllocs[0]->getHostPtr()); in compareFUnord()
1765 bool compareNoContractCase(const std::vector<Resource>&, const vector<AllocationSp>& outputAllocs, … in compareNoContractCase() argument
1767 if (outputAllocs.size() != 1) in compareNoContractCase()
1773 const float* outputAsFloat = static_cast<const float*>(outputAllocs[0]->getHostPtr()); in compareNoContractCase()
1875 bool compareFRem(const std::vector<Resource>&, const vector<AllocationSp>& outputAllocs, const std:… in compareFRem() argument
1877 if (outputAllocs.size() != 1) in compareFRem()
1884 const float* outputAsFloat = static_cast<const float*>(outputAllocs[0]->getHostPtr()); in compareFRem()
1976 bool compareNMin (const std::vector<Resource>&, const vector<AllocationSp>& outputAllocs, const std… in compareNMin() argument
[all …]
DvktSpvAsmImageSamplerTests.cpp1151 const std::vector<AllocationSp>& outputAllocs, in verifyDepthCompareResult() argument
1157 if (outputAllocs.size() != expectedOutputs.size()) in verifyDepthCompareResult()
1163 const float* returnedAsFloat = static_cast<const float*>(outputAllocs[0]->getHostPtr()); in verifyDepthCompareResult()
DvktSpvAsmFloatControlsTests.cpp2749 const vector<AllocationSp>& outputAllocs, in checkFloats() argument
2753 if (outputAllocs.size() != expectedOutputs.size()) in checkFloats()
2756 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in checkFloats()
2761 if (!compareBytes<TYPE, FLOAT_TYPE>(expectedBytes, outputAllocs[outputNdx], log)) in checkFloats()
2769 const vector<AllocationSp>& outputAllocs, in checkMixedFloats() argument
2775 if (outputAllocs.size() != expectedOutputs.size()) in checkMixedFloats()
2789 int resultIndex = static_cast<int>(outputAllocs.size()); in checkMixedFloats()
2795 allResultsAreCorrect &= compareMap.at(type)(expectedBytes, outputAllocs[resultIndex], log); in checkMixedFloats()