/third_party/vk-gl-cts/framework/referencerenderer/ |
D | rrRenderer.cpp | 488 void flatshadePrimitiveVertices (pa::Triangle& target, size_t outputNdx) in flatshadePrimitiveVertices() argument 490 const rr::GenericVec4 flatValue = target.getProvokingVertex()->outputs[outputNdx]; in flatshadePrimitiveVertices() 491 target.v0->outputs[outputNdx] = flatValue; in flatshadePrimitiveVertices() 492 target.v1->outputs[outputNdx] = flatValue; in flatshadePrimitiveVertices() 493 target.v2->outputs[outputNdx] = flatValue; in flatshadePrimitiveVertices() 496 void flatshadePrimitiveVertices (pa::Line& target, size_t outputNdx) in flatshadePrimitiveVertices() argument 498 const rr::GenericVec4 flatValue = target.getProvokingVertex()->outputs[outputNdx]; in flatshadePrimitiveVertices() 499 target.v0->outputs[outputNdx] = flatValue; in flatshadePrimitiveVertices() 500 target.v1->outputs[outputNdx] = flatValue; in flatshadePrimitiveVertices() 503 void flatshadePrimitiveVertices (pa::Point& target, size_t outputNdx) in flatshadePrimitiveVertices() argument [all …]
|
D | rrShadingContext.hpp | 55 … (const FragmentShadingContext& context, int packetNdx, int fragNdx, int outputNdx, const T& value) in writeFragmentOutput() argument 59 DE_ASSERT(outputNdx >= 0 && outputNdx < context.numFragmentOutputs); in writeFragmentOutput() 61 context.outputArray[outputNdx + context.numFragmentOutputs*(fragNdx + packetNdx*4)] = value; in writeFragmentOutput() 65 …(const FragmentShadingContext& context, int packetNdx, int fragNdx, int outputNdx, const T& value,… in writeFragmentOutputDualSource() argument 69 DE_ASSERT(outputNdx >= 0 && outputNdx < context.numFragmentOutputs); in writeFragmentOutputDualSource() 71 context.outputArray[outputNdx + context.numFragmentOutputs*(fragNdx + packetNdx*4)] = value; in writeFragmentOutputDualSource() 72 context.outputArraySrc1[outputNdx + context.numFragmentOutputs*(fragNdx + packetNdx*4)] = value1; in writeFragmentOutputDualSource()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/ |
D | vktSpvAsmComputeShaderCase.cpp | 713 for (deUint32 outputNdx = 0; outputNdx < m_shaderSpec.outputs.size(); ++outputNdx) in iterate() local 715 …DE_ASSERT(m_shaderSpec.outputs[outputNdx].getDescriptorType() == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER… in iterate() 717 descriptorTypes.push_back(m_shaderSpec.outputs[outputNdx].getDescriptorType()); in iterate() 720 const BufferSp& output = m_shaderSpec.outputs[outputNdx].getBuffer(); in iterate() 753 for (deUint32 outputNdx = 0; outputNdx < m_shaderSpec.outputs.size(); ++outputNdx) in iterate() local 755 info.buffer = **outputBuffers[outputNdx]; in iterate() 838 for (size_t outputNdx = 0; outputNdx < m_shaderSpec.outputs.size(); ++outputNdx) in iterate() local 840 invalidateMemory(vkdi, device, outputAllocs[outputNdx].get(), m_shaderSpec.coherentMemory); in iterate() 851 for (size_t outputNdx = 0; outputNdx < m_shaderSpec.outputs.size(); ++outputNdx) in iterate() local 853 const BufferSp& expectedOutput = m_shaderSpec.outputs[outputNdx].getBuffer(); in iterate() [all …]
|
D | vktSpvAsmComputeShaderTestUtil.cpp | 38 for (size_t outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in verifyOutputWithEpsilon() local 41 expectedOutputs[outputNdx].getBytes(expectedBytes); in verifyOutputWithEpsilon() 47 memcpy(&actualFloats[0], outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size()); in verifyOutputWithEpsilon()
|
D | vktSpvAsmEmptyStructTests.cpp | 44 for (deUint32 outputNdx = 0; outputNdx < static_cast<deUint32>(outputAllocs.size()); ++outputNdx) in verifyResult() local 47 expectedOutputs[outputNdx].getBytes(expectedBytes); in verifyResult() 50 const deUint32* returned = static_cast<const deUint32*>(outputAllocs[outputNdx]->getHostPtr()); in verifyResult()
|
D | vktSpvAsm16bitStorageTests.cpp | 200 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in graphicsCheck16BitFloats() local 203 originalFloats[outputNdx].getBuffer()->getPackedBytes(originalBytes); in graphicsCheck16BitFloats() 205 const deUint16* returned = static_cast<const deUint16*>(outputAllocs[outputNdx]->getHostPtr()); in graphicsCheck16BitFloats() 207 …const deUint32 count = static_cast<deUint32>(expectedOutputs[outputNdx].getByteSize() / sizeof(de… in graphicsCheck16BitFloats() 227 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in graphicsCheck16BitFloats64() local 230 originalFloats[outputNdx].getBuffer()->getPackedBytes(originalBytes); in graphicsCheck16BitFloats64() 232 const deUint16* returned = static_cast<const deUint16*>(outputAllocs[outputNdx]->getHostPtr()); in graphicsCheck16BitFloats64() 278 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in computeCheck16BitFloats() local 281 originalFloats[outputNdx].getBuffer()->getPackedBytes(originalBytes); in computeCheck16BitFloats() 283 const deUint16* returned = static_cast<const deUint16*>(outputAllocs[outputNdx]->getHostPtr()); in computeCheck16BitFloats() [all …]
|
D | vktSpvAsmGraphicsShaderTestUtil.cpp | 3531 for (deUint32 outputNdx = 0; outputNdx < numOutResources; ++outputNdx) in runAndVerifyDefaultPipeline() local 3533 const Resource& resource = instance.resources.outputs[outputNdx]; in runAndVerifyDefaultPipeline() 3552 numInResources + outputNdx, // binding in runAndVerifyDefaultPipeline() 3757 for (deUint32 outputNdx = 0; outputNdx < numOutResources; ++outputNdx) in runAndVerifyDefaultPipeline() local 3761 **outResourceBuffers[outputNdx], // buffer in runAndVerifyDefaultPipeline() 3771 numInResources + outputNdx, // binding in runAndVerifyDefaultPipeline() 3774 instance.resources.outputs[outputNdx].getDescriptorType(), // descriptorType in runAndVerifyDefaultPipeline() 4438 for (deUint32 outputNdx = 0; outputNdx < numOutResources; ++outputNdx) in runAndVerifyDefaultPipeline() local 4439 invalidateAlloc(vk, device, *outResourceMemories[outputNdx]); in runAndVerifyDefaultPipeline() 4580 for (deUint32 outputNdx = 0; outputNdx < numOutResources; ++outputNdx) in runAndVerifyDefaultPipeline() local [all …]
|
D | vktSpvAsm8bitStorageTests.cpp | 666 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in checkStruct() local 669 originalFloats[outputNdx].getBytes(originalBytes); in checkStruct() 671 …const resultType* returned = static_cast<const resultType*>(outputAllocs[outputNdx]->getHostPtr()); in checkStruct() 690 for (deUint32 outputNdx = 0; outputNdx < static_cast<deUint32>(outputAllocs.size()); ++outputNdx) in checkUniformsArray() local 693 originalFloats[outputNdx].getBytes(originalBytes); in checkUniformsArray() 696 …const resultType* returned = static_cast<const resultType*>(outputAllocs[outputNdx]->getHostPtr()); in checkUniformsArray() 724 for (deUint32 outputNdx = 0; outputNdx < static_cast<deUint32>(outputAllocs.size()); ++outputNdx) in checkUniformsArrayConstNdx() local 727 originalFloats[outputNdx].getBytes(originalBytes); in checkUniformsArrayConstNdx() 730 …const resultType* returned = static_cast<const resultType*>(outputAllocs[outputNdx]->getHostPtr()); in checkUniformsArrayConstNdx()
|
D | vktSpvAsmFloatControlsTests.cpp | 2756 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in checkFloats() local 2759 expectedOutputs[outputNdx].getBytes(expectedBytes); in checkFloats() 2761 if (!compareBytes<TYPE, FLOAT_TYPE>(expectedBytes, outputAllocs[outputNdx], log)) in checkFloats()
|
D | vktSpvAsmInstructionTests.cpp | 19590 for (size_t outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in compareFloats() local 19596 expectedOutputs[outputNdx].getBytes(expectedBytes); in compareFloats() 19598 memcpy(&actual, outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size()); in compareFloats() 19618 for (size_t outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in passthruVerify() local 19621 expectedOutputs[outputNdx].getBytes(expectedBytes); in passthruVerify() 19626 memcpy(&data[0], outputAllocs[outputNdx]->getHostPtr(), width); in passthruVerify()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmComputeShaderCase.cpp | 713 for (deUint32 outputNdx = 0; outputNdx < m_shaderSpec.outputs.size(); ++outputNdx) in iterate() local 715 …DE_ASSERT(m_shaderSpec.outputs[outputNdx].getDescriptorType() == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER… in iterate() 717 descriptorTypes.push_back(m_shaderSpec.outputs[outputNdx].getDescriptorType()); in iterate() 720 const BufferSp& output = m_shaderSpec.outputs[outputNdx].getBuffer(); in iterate() 753 for (deUint32 outputNdx = 0; outputNdx < m_shaderSpec.outputs.size(); ++outputNdx) in iterate() local 755 info.buffer = **outputBuffers[outputNdx]; in iterate() 838 for (size_t outputNdx = 0; outputNdx < m_shaderSpec.outputs.size(); ++outputNdx) in iterate() local 840 invalidateMemory(vkdi, device, outputAllocs[outputNdx].get(), m_shaderSpec.coherentMemory); in iterate() 851 for (size_t outputNdx = 0; outputNdx < m_shaderSpec.outputs.size(); ++outputNdx) in iterate() local 853 const BufferSp& expectedOutput = m_shaderSpec.outputs[outputNdx].getBuffer(); in iterate() [all …]
|
D | vktSpvAsmComputeShaderTestUtil.cpp | 38 for (size_t outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in verifyOutputWithEpsilon() local 41 expectedOutputs[outputNdx].getBytes(expectedBytes); in verifyOutputWithEpsilon() 47 memcpy(&actualFloats[0], outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size()); in verifyOutputWithEpsilon()
|
D | vktSpvAsmEmptyStructTests.cpp | 44 for (deUint32 outputNdx = 0; outputNdx < static_cast<deUint32>(outputAllocs.size()); ++outputNdx) in verifyResult() local 47 expectedOutputs[outputNdx].getBytes(expectedBytes); in verifyResult() 50 const deUint32* returned = static_cast<const deUint32*>(outputAllocs[outputNdx]->getHostPtr()); in verifyResult()
|
D | vktSpvAsm16bitStorageTests.cpp | 200 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in graphicsCheck16BitFloats() local 203 originalFloats[outputNdx].getBuffer()->getPackedBytes(originalBytes); in graphicsCheck16BitFloats() 205 const deUint16* returned = static_cast<const deUint16*>(outputAllocs[outputNdx]->getHostPtr()); in graphicsCheck16BitFloats() 207 …const deUint32 count = static_cast<deUint32>(expectedOutputs[outputNdx].getByteSize() / sizeof(de… in graphicsCheck16BitFloats() 227 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in graphicsCheck16BitFloats64() local 230 originalFloats[outputNdx].getBuffer()->getPackedBytes(originalBytes); in graphicsCheck16BitFloats64() 232 const deUint16* returned = static_cast<const deUint16*>(outputAllocs[outputNdx]->getHostPtr()); in graphicsCheck16BitFloats64() 278 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in computeCheck16BitFloats() local 281 originalFloats[outputNdx].getBuffer()->getPackedBytes(originalBytes); in computeCheck16BitFloats() 283 const deUint16* returned = static_cast<const deUint16*>(outputAllocs[outputNdx]->getHostPtr()); in computeCheck16BitFloats() [all …]
|
D | vktSpvAsmGraphicsShaderTestUtil.cpp | 3531 for (deUint32 outputNdx = 0; outputNdx < numOutResources; ++outputNdx) in runAndVerifyDefaultPipeline() local 3533 const Resource& resource = instance.resources.outputs[outputNdx]; in runAndVerifyDefaultPipeline() 3552 numInResources + outputNdx, // binding in runAndVerifyDefaultPipeline() 3757 for (deUint32 outputNdx = 0; outputNdx < numOutResources; ++outputNdx) in runAndVerifyDefaultPipeline() local 3761 **outResourceBuffers[outputNdx], // buffer in runAndVerifyDefaultPipeline() 3771 numInResources + outputNdx, // binding in runAndVerifyDefaultPipeline() 3774 instance.resources.outputs[outputNdx].getDescriptorType(), // descriptorType in runAndVerifyDefaultPipeline() 4438 for (deUint32 outputNdx = 0; outputNdx < numOutResources; ++outputNdx) in runAndVerifyDefaultPipeline() local 4439 invalidateAlloc(vk, device, *outResourceMemories[outputNdx]); in runAndVerifyDefaultPipeline() 4580 for (deUint32 outputNdx = 0; outputNdx < numOutResources; ++outputNdx) in runAndVerifyDefaultPipeline() local [all …]
|
D | vktSpvAsm8bitStorageTests.cpp | 666 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in checkStruct() local 669 originalFloats[outputNdx].getBytes(originalBytes); in checkStruct() 671 …const resultType* returned = static_cast<const resultType*>(outputAllocs[outputNdx]->getHostPtr()); in checkStruct() 690 for (deUint32 outputNdx = 0; outputNdx < static_cast<deUint32>(outputAllocs.size()); ++outputNdx) in checkUniformsArray() local 693 originalFloats[outputNdx].getBytes(originalBytes); in checkUniformsArray() 696 …const resultType* returned = static_cast<const resultType*>(outputAllocs[outputNdx]->getHostPtr()); in checkUniformsArray() 724 for (deUint32 outputNdx = 0; outputNdx < static_cast<deUint32>(outputAllocs.size()); ++outputNdx) in checkUniformsArrayConstNdx() local 727 originalFloats[outputNdx].getBytes(originalBytes); in checkUniformsArrayConstNdx() 730 …const resultType* returned = static_cast<const resultType*>(outputAllocs[outputNdx]->getHostPtr()); in checkUniformsArrayConstNdx()
|
D | vktSpvAsmFloatControlsTests.cpp | 2756 for (deUint32 outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in checkFloats() local 2759 expectedOutputs[outputNdx].getBytes(expectedBytes); in checkFloats() 2761 if (!compareBytes<TYPE, FLOAT_TYPE>(expectedBytes, outputAllocs[outputNdx], log)) in checkFloats()
|
D | vktSpvAsmInstructionTests.cpp | 19590 for (size_t outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in compareFloats() local 19596 expectedOutputs[outputNdx].getBytes(expectedBytes); in compareFloats() 19598 memcpy(&actual, outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size()); in compareFloats() 19618 for (size_t outputNdx = 0; outputNdx < outputAllocs.size(); ++outputNdx) in passthruVerify() local 19621 expectedOutputs[outputNdx].getBytes(expectedBytes); in passthruVerify() 19626 memcpy(&data[0], outputAllocs[outputNdx]->getHostPtr(), width); in passthruVerify()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/ |
D | vktShaderExecutor.cpp | 1877 for (size_t outputNdx = 0; outputNdx < m_shaderSpec.outputs.size(); ++outputNdx) in readOutputBuffer() local 1879 const glu::VarType& varType = m_shaderSpec.outputs[outputNdx].varType; in readOutputBuffer() 1880 const VarLayout& layout = m_outputLayout[outputNdx]; in readOutputBuffer() 1882 copyFromBuffer(varType, layout, numValues, m_outputAlloc->getHostPtr(), outputPtrs[outputNdx]); in readOutputBuffer() 2551 for (size_t outputNdx = 0; outputNdx < outputTypes.size(); ++outputNdx) in generateSpirv() local 2554 …out_val_final_" << outputNdx << " = OpLoad " << (packFloatRes[outputNdx] ? packType : outputTypes[… in generateSpirv() 2555 …sbo_dst_ptr_" << outputNdx << " = OpAccessChain %up_out_" << outputNdx << " %ssbo_dst %c_i32_0 %in… in generateSpirv() 2557 if (packFloatRes[outputNdx]) in generateSpirv() 2559 if (spec.outputs[outputNdx].varType.getScalarSize() > 1) in generateSpirv() 2561 for (int i = 0; i < spec.outputs[outputNdx].varType.getScalarSize(); ++i) in generateSpirv() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/ |
D | vktShaderExecutor.cpp | 1877 for (size_t outputNdx = 0; outputNdx < m_shaderSpec.outputs.size(); ++outputNdx) in readOutputBuffer() local 1879 const glu::VarType& varType = m_shaderSpec.outputs[outputNdx].varType; in readOutputBuffer() 1880 const VarLayout& layout = m_outputLayout[outputNdx]; in readOutputBuffer() 1882 copyFromBuffer(varType, layout, numValues, m_outputAlloc->getHostPtr(), outputPtrs[outputNdx]); in readOutputBuffer() 2551 for (size_t outputNdx = 0; outputNdx < outputTypes.size(); ++outputNdx) in generateSpirv() local 2554 …out_val_final_" << outputNdx << " = OpLoad " << (packFloatRes[outputNdx] ? packType : outputTypes[… in generateSpirv() 2555 …sbo_dst_ptr_" << outputNdx << " = OpAccessChain %up_out_" << outputNdx << " %ssbo_dst %c_i32_0 %in… in generateSpirv() 2557 if (packFloatRes[outputNdx]) in generateSpirv() 2559 if (spec.outputs[outputNdx].varType.getScalarSize() > 1) in generateSpirv() 2561 for (int i = 0; i < spec.outputs[outputNdx].varType.getScalarSize(); ++i) in generateSpirv() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassMultisampleResolveTests.cpp | 2164 for (int outputNdx = 0; outputNdx < outputsCount; ++outputNdx) in verify() local 2166 void* const ptr = m_bufferMemory[outputNdx]->getHostPtr(); in verify() 2194 for (int outputNdx = 0; outputNdx < outputsCount; outputNdx++) in verify() local 2198 Vec4 color = accesses[outputNdx].getPixel(x, y); in verify() 2207 errorMask.getAccess().setPixel(errorColor, x, y, outputNdx); in verify() 2211 errorMask.getAccess().setPixel(okColor, x, y, outputNdx); in verify() 2234 for (int outputNdx = 0; outputNdx < outputsCount; outputNdx++) in verify() local 2238 const UVec4 color (accesses[outputNdx].getPixelUint(x, y)); in verify() 2247 errorMask.getAccess().setPixel(errorColor, x, y, outputNdx); in verify() 2251 errorMask.getAccess().setPixel(okColor, x, y, outputNdx); in verify() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/renderpass/ |
D | vktRenderPassMultisampleResolveTests.cpp | 2164 for (int outputNdx = 0; outputNdx < outputsCount; ++outputNdx) in verify() local 2166 void* const ptr = m_bufferMemory[outputNdx]->getHostPtr(); in verify() 2194 for (int outputNdx = 0; outputNdx < outputsCount; outputNdx++) in verify() local 2198 Vec4 color = accesses[outputNdx].getPixel(x, y); in verify() 2207 errorMask.getAccess().setPixel(errorColor, x, y, outputNdx); in verify() 2211 errorMask.getAccess().setPixel(okColor, x, y, outputNdx); in verify() 2234 for (int outputNdx = 0; outputNdx < outputsCount; outputNdx++) in verify() local 2238 const UVec4 color (accesses[outputNdx].getPixelUint(x, y)); in verify() 2247 errorMask.getAccess().setPixel(errorColor, x, y, outputNdx); in verify() 2251 errorMask.getAccess().setPixel(okColor, x, y, outputNdx); in verify() [all …]
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fFragmentOutputTests.cpp | 625 for (int outputNdx = 0; outputNdx < (int)m_outputs.size(); outputNdx++) in iterate() local 627 const FragmentOutput& output = m_outputs[outputNdx]; in iterate() 776 for (int outputNdx = 0; outputNdx < (int)m_outputs.size(); outputNdx++) in iterate() local 778 const FragmentOutput& output = m_outputs[outputNdx]; in iterate() 791 …string name = string("in") + de::toString(outputNdx) + (isArray ? string("_") + de::toString(vecNd… in iterate() 839 for (int outputNdx = 0; outputNdx < (int)m_outputs.size(); outputNdx++) in iterate() local 841 const FragmentOutput& output = m_outputs[outputNdx]; in iterate()
|
/third_party/vk-gl-cts/modules/glshared/ |
D | glsShaderExecUtil.cpp | 1076 for (size_t outputNdx = 0; outputNdx < m_outputs.size(); ++outputNdx) in readOutputBuffer() local 1078 const glu::VarType& varType = m_outputs[outputNdx].varType; in readOutputBuffer() 1079 const VarLayout& layout = m_outputLayout[outputNdx]; in readOutputBuffer() 1081 copyFromBuffer(varType, layout, numValues, mapPtr, outputPtrs[outputNdx]); in readOutputBuffer()
|