/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmComputeShaderTestUtil.cpp | 33 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() 130 bool verifyOutput (const std::vector<Resource>&, const std::vector<AllocationSp>& outputAllocs, con… in verifyOutput() argument 133 return verifyOutputWithEpsilon(outputAllocs, expectedOutputs, log, epsilon); in verifyOutput()
|
D | vktSpvAsmComputeShaderTestUtil.hpp | 161 …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() 391 const std::vector<AllocationSp>& outputAllocs,
|
D | vktSpvAsmWorkgroupMemoryTests.cpp | 56 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()
|
D | vktSpvAsmComputeShaderCase.cpp | 407 vector<AllocationSp> outputAllocs; in iterate() local 702 outputAllocs.push_back(de::SharedPtr<Allocation>(alloc.release())); in iterate() 748 invalidateMemory(vkdi, device, outputAllocs[outputNdx].get(), m_shaderSpec.coherentMemory); in iterate() 754 …if (!(*m_shaderSpec.verifyIO)(m_shaderSpec.inputs, outputAllocs, m_shaderSpec.outputs, m_context.g… in iterate() 766 … if (deMemCmp(&expectedBytes.front(), outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size())) in iterate() 768 const deUint8* ptrHost = static_cast<deUint8*>(outputAllocs[outputNdx]->getHostPtr()); in iterate()
|
D | vktSpvAsm16bitStorageTests.cpp | 192 const vector<AllocationSp>& outputAllocs, in graphicsCheck16BitFloats() argument 196 if (outputAllocs.size() != originalFloats.size()) in graphicsCheck16BitFloats() 199 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in graphicsCheck16BitFloats() 204 const deUint16* returned = static_cast<const deUint16*>(outputAllocs[outputNdx]->getHostPtr()); in graphicsCheck16BitFloats() 219 const vector<AllocationSp>& outputAllocs, in graphicsCheck16BitFloats64() argument 223 if (outputAllocs.size() != originalFloats.size()) in graphicsCheck16BitFloats64() 226 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in graphicsCheck16BitFloats64() 231 const deUint16* returned = static_cast<const deUint16*>(outputAllocs[outputNdx]->getHostPtr()); in graphicsCheck16BitFloats64() 244 const vector<AllocationSp>& outputAllocs, in computeCheckBuffersFloats() argument 252 const deUint16 * expected = reinterpret_cast<const deUint16 *>(outputAllocs.front()->getHostPtr()); in computeCheckBuffersFloats() [all …]
|
D | vktSpvAsmCompositeInsertTests.cpp | 106 …put (const std::vector<Resource>& inputs, const vector<AllocationSp>& outputAllocs, const std::vec… in verifyMatrixOutput() argument 110 if (outputAllocs.size() != 1) in verifyMatrixOutput() 117 …const float* const outputAsFloat = static_cast<const float*>(outputAllocs[0]->getHo… in verifyMatrixOutput()
|
D | vktSpvAsmInstructionTests.cpp | 381 bool compareFUnord (const std::vector<Resource>& inputs, const vector<AllocationSp>& outputAllocs, … in compareFUnord() argument 383 if (outputAllocs.size() != 1) in compareFUnord() 395 const deInt32* const outputAsInt = static_cast<const deInt32*>(outputAllocs[0]->getHostPtr()); in compareFUnord() 980 bool compareNoContractCase(const std::vector<Resource>&, const vector<AllocationSp>& outputAllocs, … in compareNoContractCase() argument 982 if (outputAllocs.size() != 1) in compareNoContractCase() 988 const float* outputAsFloat = static_cast<const float*>(outputAllocs[0]->getHostPtr()); in compareNoContractCase() 1090 bool compareFRem(const std::vector<Resource>&, const vector<AllocationSp>& outputAllocs, const std:… in compareFRem() argument 1092 if (outputAllocs.size() != 1) in compareFRem() 1099 const float* outputAsFloat = static_cast<const float*>(outputAllocs[0]->getHostPtr()); in compareFRem() 1191 bool compareNMin (const std::vector<Resource>&, const vector<AllocationSp>& outputAllocs, const std… in compareNMin() argument [all …]
|
D | vktSpvAsm8bitStorageTests.cpp | 160 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 …]
|
D | vktSpvAsmImageSamplerTests.cpp | 1150 const std::vector<AllocationSp>& outputAllocs, in verifyDepthCompareResult() argument 1156 if (outputAllocs.size() != expectedOutputs.size()) in verifyDepthCompareResult() 1162 const float* returnedAsFloat = static_cast<const float*>(outputAllocs[0]->getHostPtr()); in verifyDepthCompareResult()
|
D | vktSpvAsmFloatControlsTests.cpp | 2121 const vector<AllocationSp>& outputAllocs, in checkFloats() argument 2125 if (outputAllocs.size() != expectedOutputs.size()) in checkFloats() 2128 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in checkFloats() 2133 if (!compareBytes<TYPE, FLOAT_TYPE>(expectedBytes, outputAllocs[outputNdx], log)) in checkFloats()
|