Home
last modified time | relevance | path

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

12

/external/deqp/external/vulkancts/modules/vulkan/image/
DvktImageMultisampleLoadStoreTests.cpp208 for (int layerNdx = 0; layerNdx < caseDef.texture.numLayers(); ++layerNdx) in insertImageViews() local
210 (*pOutImageViews)[layerNdx] = makeVkSharedPtr(makeImageView( in insertImageViews()
212 makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, 0u, 1u, layerNdx, 1u))); in insertImageViews()
232 for (int layerNdx = 0; layerNdx < caseDef.texture.numLayers(); ++layerNdx) in insertDescriptorSets() local
233 …(*pOutDescriptorSets)[layerNdx] = makeVkSharedPtr(makeDescriptorSet(vk, device, descriptorPool, de… in insertDescriptorSets()
279 for (int layerNdx = 0; layerNdx < numLayers; ++layerNdx) in test() local
281 deInt32* const valuePtr = reinterpret_cast<deInt32*>(basePtr + layerNdx * bufferChunkSize); in test()
282 *valuePtr = layerNdx; in test()
349 for (int layerNdx = 0; layerNdx < loopNumLayers; ++layerNdx) in test() local
351 const VkDescriptorSet descriptorSet = **allDescriptorSets[layerNdx]; in test()
[all …]
DvktImageLoadStoreTests.cpp111 for (int layerNdx = 0; layerNdx < numLayersOrSlices; ++layerNdx) in comparePixelBuffers() local
113 const std::string comparisonName = "Comparison" + de::toString(layerNdx); in comparePixelBuffers()
115 …(isCube(texture) ? "face " + de::toString(layerNdx % numCubeFaces) + ", cube " + de::toString(laye… in comparePixelBuffers()
116 is3d ? "slice " + de::toString(layerNdx) : "layer " + de::toString(layerNdx)); in comparePixelBuffers()
118 const tcu::ConstPixelBufferAccess refLayer = getLayerOrSlice(texture, reference, layerNdx); in comparePixelBuffers()
119 const tcu::ConstPixelBufferAccess resultLayer = getLayerOrSlice(texture, result, layerNdx); in comparePixelBuffers()
432 const int layerNdx) = 0;
475 for (int layerNdx = 0; layerNdx < loopNumLayers; ++layerNdx) in iterate() local
477 commandBindDescriptorsForLayer(*cmdBuffer, *pipelineLayout, layerNdx); in iterate()
479 if (layerNdx > 0) in iterate()
[all …]
DvktImageCompressionTranscodingSupport.cpp566 for (deUint32 layerNdx = 0u; layerNdx < getLayerCount(); ++layerNdx) in iterate() local
570 makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, mipNdx, 1u, layerNdx, 1u), in iterate()
640 for (deUint32 layerNdx = 0u; layerNdx < getLayerCount(); ++layerNdx) in iterate() local
642 const deUint32 imageNdx = layerNdx + mipNdx * getLayerCount(); in iterate()
976 for (size_t layerNdx = 0ull; layerNdx < getLayerCount(); ++layerNdx) in createImageInfos() local
1021 for (deUint32 layerNdx = 0u; layerNdx < getLayerCount(); ++layerNdx) in decompressImage() local
1023 const bool layoutShaderReadOnly = (layerNdx % 2u) == 1; in decompressImage()
1024 const deUint32 imageNdx = layerNdx + mipNdx * getLayerCount(); in decompressImage()
1094 …makeImageSubresourceRange(VK_IMAGE_ASPECT_COLOR_BIT, mipNdx, 1u, layerNdx, 1u), &compressedViewUsa… in decompressImage()
1175 layerNdx, //deUint32 baseArrayLayer in decompressImage()
[all …]
DvktImageQualifiersTests.cpp128 for (deUint32 layerNdx = 0; layerNdx < getNumLayers(imageType, imageSize); ++layerNdx) in comparePixelBuffers() local
130 const std::string comparisonName = "Comparison" + de::toString(layerNdx); in comparePixelBuffers()
136 comparisonDesc = comparisonDesc + "slice " + de::toString(layerNdx); in comparePixelBuffers()
141 …risonDesc = comparisonDesc + "face " + de::toString(layerNdx % 6) + ", cube " + de::toString(layer… in comparePixelBuffers()
145 comparisonDesc = comparisonDesc + "layer " + de::toString(layerNdx); in comparePixelBuffers()
149 const tcu::ConstPixelBufferAccess refLayer = getLayerOrSlice(imageType, reference, layerNdx); in comparePixelBuffers()
150 const tcu::ConstPixelBufferAccess resultLayer = getLayerOrSlice(imageType, result, layerNdx); in comparePixelBuffers()
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineImageUtil.cpp596 for (int layerNdx = 0; layerNdx < getArraySize(); layerNdx++) in getSize() local
598 const tcu::ConstPixelBufferAccess level = getLevel(levelNdx, layerNdx); in getSize()
620 for (int layerNdx = 0; layerNdx < getArraySize(); layerNdx++) in getCompressedSize() local
623 textureSize += getCompressedLevel(levelNdx, layerNdx).getDataSize(); in getCompressedSize()
660 for (int layerNdx = 0; layerNdx < getArraySize(); layerNdx++) in getBufferCopyRegions() local
662 const tcu::CompressedTexture& level = getCompressedLevel(levelNdx, layerNdx); in getBufferCopyRegions()
674 (deUint32)layerNdx, in getBufferCopyRegions()
708 for (int layerNdx = 0; layerNdx < getArraySize(); layerNdx++) in getBufferCopyRegions() local
710 const tcu::ConstPixelBufferAccess level = getLevel(levelNdx, layerNdx); in getBufferCopyRegions()
724 (deUint32)layerNdx, in getBufferCopyRegions()
[all …]
DvktPipelineMultisampleImageTests.cpp813 for (int layerNdx = 0; layerNdx < caseDef.numLayers; ++layerNdx) in renderMultisampledImage() local
815 if (layerNdx != 0) in renderMultisampledImage()
818 vk.cmdBindPipeline(*cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, **pipelines[layerNdx]); in renderMultisampledImage()
1266 for (int layerNdx = 0; layerNdx < caseDef.numLayers; ++layerNdx) in compareImages() local
1268 …rAccess referenceImage = tcu::getSubregion(layeredReferenceImage, 0, 0, layerNdx, caseDef.renderSi… in compareImages()
1269 …BufferAccess actualImage = tcu::getSubregion(layeredActualImage, 0, 0, layerNdx, caseDef.renderSi… in compareImages()
1270 const std::string imageName = "color layer " + de::toString(layerNdx); in compareImages()
1416 for (int layerNdx = 0; layerNdx < DE_LENGTH_OF_ARRAY(numLayers); ++layerNdx) in addTestCasesWithFunctions() local
1418 …roup(group->getTestContext(), getSizeLayerString(size[sizeNdx], numLayers[layerNdx]).c_str(), "")); in addTestCasesWithFunctions()
1430 numLayers[layerNdx], // int numLayers; in addTestCasesWithFunctions()
DvktPipelineFramebufferAttachmentTests.cpp463 for (deUint32 layerNdx = 0; layerNdx < caseDef.numLayers; ++layerNdx) in test() local
466 imageViewType, COLOR_FORMAT, makeColorSubresourceRange(layerNdx, 1)))); in test()
470 caseDef.renderSize, VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP, layerNdx, 1u, caseDef.multisample))); in test()
535 for (deUint32 layerNdx = 0; layerNdx < caseDef.numLayers; ++layerNdx) in test() local
537 if (layerNdx != 0) in test()
540 vk.cmdBindPipeline(*cmdBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, **pipeline[layerNdx]); in test()
541 vk.cmdDraw(*cmdBuffer, 4u, 1u, layerNdx*4u, 0u); in test()
/external/deqp/external/vulkancts/modules/vulkan/geometry/
DvktGeometryLayeredRenderingTests.cpp578 …t TestType testType, const tcu::ConstPixelBufferAccess image, const int layerNdx, const int numLay… in verifyLayerContent() argument
582 const float variableBarRatio = static_cast<float>(layerNdx) / static_cast<float>(numLayers); in verifyLayerContent()
587 if (layerNdx == 0) in verifyLayerContent()
593 if (layerNdx == targetLayer) in verifyLayerContent()
600 …return verifyImageSingleColoredRow(log, image, 0.5f, s_colors[layerNdx % DE_LENGTH_OF_ARRAY(s_colo… in verifyLayerContent()
604 if (layerNdx == 0) in verifyLayerContent()
612 const tcu::Vec4 layerColor( (layerNdx % 2) == 1 ? 1.0f : 0.5f, in verifyLayerContent()
613 ((layerNdx/2) % 2) == 1 ? 1.0f : 0.5f, in verifyLayerContent()
614 layerNdx == 0 ? 1.0f : 0.0f, in verifyLayerContent()
628 …const float pass0depth = static_cast<float>(layerNdx + 1) / static_cast<float>(2 * numLayers… in verifyLayerContent()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/multiview/
DvktMultiViewRenderTests.cpp285 …rterRefColor (const deUint32 quarterNdx, const int colorNdx, const int layerNdx, const bool backg…
287 …ixelBuffer, const tcu::Vec4& pointColor, const int pointSize, const int layerNdx, const deUint32 q…
288 … tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& color, const int layerNdx, const deUint32 q…
289 …llLayer (const tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& color, const int layerNdx);
290 … tcu::PixelBufferAccess& pixelBuffer, const tcu::Vec4& color, const int layerNdx, const deUint32 q…
1122 for (deUint32 layerNdx = 0u; layerNdx < m_parameters.extent.depth; layerNdx++) in checkImage() local
1124 …nt.width, m_parameters.extent.height, 1u, referenceFrame->getLevel(0).getPixelPtr(0, 0, layerNdx)); in checkImage()
1125 …arameters.extent.width, m_parameters.extent.height, 1u, renderedFrame.getPixelPtr(0 ,0, layerNdx)); in checkImage()
1132 …arterRefColor (const deUint32 quarterNdx, const int colorNdx, const int layerNdx, const bool backg… in getQuarterRefColor() argument
1143 …return m_vertexColor[0] + tcu::Vec4(0.0, static_cast<float>(layerNdx) * 0.10f, static_cast<float>(… in getQuarterRefColor()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesImageSparseResidency.cpp316 for (deUint32 layerNdx = 0; layerNdx < imageCreateInfo.arrayLayers; ++layerNdx) in iterate() local
320 const VkImageSubresource subresource = { aspectMask, mipLevelNdx, layerNdx }; in iterate()
330 … = x + y*numSparseBinds.x() + z*numSparseBinds.x()*numSparseBinds.y() + layerNdx*numSparseBinds.x(… in iterate()
359 …s.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset + layerNdx * aspectRequireme… in iterate()
375 …metadataAspectRequirements.imageMipTailOffset + layerNdx * metadataAspectRequirements.imageMipTail… in iterate()
605 for (deUint32 layerNdx = 0; layerNdx < imageCreateInfo.arrayLayers; ++layerNdx) in iterate() local
614 offset.depth = z*imageGranularity.depth + layerNdx*numSparseBinds.z()*imageGranularity.depth; in iterate()
621 … = x + y*numSparseBinds.x() + z*numSparseBinds.x()*numSparseBinds.y() + layerNdx*numSparseBinds.x(… in iterate()
DvktSparseResourcesShaderIntrinsicsBase.cpp344 for (deUint32 layerNdx = 0; layerNdx < imageSparseInfo.arrayLayers; ++layerNdx) in iterate() local
349 const VkImageSubresource subresource = { aspectMask, mipLevelNdx, layerNdx }; in iterate()
373 for (deUint32 layerNdx = 0; layerNdx < imageSparseInfo.arrayLayers; ++layerNdx) in iterate() local
376 …s.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset + layerNdx * aspectRequireme… in iterate()
DvktSparseResourcesMipmapSparseResidency.cpp252 for (deUint32 layerNdx = 0; layerNdx < imageSparseInfo.arrayLayers; ++layerNdx) in iterate() local
259 const VkImageSubresource subresource = { aspectMask, mipLevelNdx, layerNdx }; in iterate()
272 …s.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset + layerNdx * aspectRequireme… in iterate()
288 …metadataAspectRequirements.imageMipTailOffset + layerNdx * metadataAspectRequirements.imageMipTail… in iterate()
DvktSparseResourcesImageMemoryAliasing.cpp312 for (deUint32 layerNdx = 0; layerNdx < imageSparseInfo.arrayLayers; ++layerNdx) in iterate() local
319 const VkImageSubresource subresource = { aspectMask, mipLevelNdx, layerNdx }; in iterate()
332 …s.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset + layerNdx * aspectRequireme… in iterate()
339 …s.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset + layerNdx * aspectRequireme… in iterate()
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderTextureGatherTests.cpp109 void computeQuadTexCoord2DArray (std::vector<float>& dst, int layerNdx, const tcu::Vec2& bottomLeft… in computeQuadTexCoord2DArray() argument
113 dst[0] = bottomLeft.x(); dst[ 1] = bottomLeft.y(); dst[ 2] = (float)layerNdx; in computeQuadTexCoord2DArray()
114 dst[3] = bottomLeft.x(); dst[ 4] = topRight.y(); dst[ 5] = (float)layerNdx; in computeQuadTexCoord2DArray()
115 dst[6] = topRight.x(); dst[ 7] = bottomLeft.y(); dst[ 8] = (float)layerNdx; in computeQuadTexCoord2DArray()
116 dst[9] = topRight.x(); dst[10] = topRight.y(); dst[11] = (float)layerNdx; in computeQuadTexCoord2DArray()
1820 int layerNdx; member
1834 for (int layerNdx = -1; layerNdx < textureSize.z()+1; layerNdx++) in generate2DArrayCaseIterations() local
1837 if (layerNdx == 0) in generate2DArrayCaseIterations()
1843 iterations.back().layerNdx = layerNdx; in generate2DArrayCaseIterations()
1851 … if (isDepthFormat(textureFormat) || basicIterations[basicNdx].componentNdx == (layerNdx + 2) % 4) in generate2DArrayCaseIterations()
[all …]
DvktShaderRender.cpp1016 for (size_t layerNdx = 0; layerNdx < layerData.size(); layerNdx++) in uploadImage() local
1020 const tcu::ConstPixelBufferAccess& access = layerData[layerNdx]; in uploadImage()
1031 (deUint32)layerNdx, // uint32_t baseArrayLayer; in uploadImage()
1288 for (size_t layerNdx = 0; layerNdx < layerData.size(); layerNdx++) in uploadSparseImage() local
1292 const tcu::ConstPixelBufferAccess& access = layerData[layerNdx]; in uploadSparseImage()
1303 (deUint32)layerNdx, // uint32_t baseArrayLayer; in uploadSparseImage()
/external/deqp/modules/gles31/functional/
Des31fTextureGatherTests.cpp1762 int layerNdx; member
1775 …glu::TextureTestUtil::computeQuadTexCoord2DArray(res, m_iterations[iterationNdx].layerNdx, Vec2(-0… in computeQuadTexCoord()
1786 for (int layerNdx = -1; layerNdx < m_textureSize.z()+1; layerNdx++) in generateIterations() local
1789 if (layerNdx == 0) in generateIterations()
1795 m_iterations.back().layerNdx = layerNdx; in generateIterations()
1803 …if (isDepthFormat(m_textureFormat) || basicIterations[basicNdx].componentNdx == (layerNdx + 2) % 4) in generateIterations()
1807 m_iterations.back().layerNdx = layerNdx; in generateIterations()
1837 for (int layerNdx = 0; layerNdx < m_textureSize.z(); layerNdx++) in createAndUploadTexture() local
1838 …g << TestLog::Image("InputTextureLevel" + de::toString(layerNdx) + "Layer" + de::toString(layerNdx in createAndUploadTexture()
1839 "Layer " + de::toString(layerNdx), in createAndUploadTexture()
[all …]
Des31fTessellationGeometryInteractionTests.cpp2129 bool verifyResultLayer (int layerNdx, const tcu::Surface& dst);
2463 for (int layerNdx = 0; layerNdx < m_numLayers; ++layerNdx) in renderTo() local
2465 gl.framebufferTextureLayer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, m_texture, 0, layerNdx); in renderTo()
2506 for (int layerNdx = 0; layerNdx < m_numLayers; ++layerNdx) in renderTo() local
2508 gl.framebufferTextureLayer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, m_texture, 0, layerNdx); in renderTo()
2509 glu::readPixels(m_context.getRenderContext(), 0, 0, dst[layerNdx].getAccess()); in renderTo()
2520 bool GridRenderCase::verifyResultLayer (int layerNdx, const tcu::Surface& image) in verifyResultLayer() argument
2527 …m_testCtx.getLog() << tcu::TestLog::Message << "Verifying output layer " << layerNdx << tcu::Test… in verifyResultLayer()
Des31fPrimitiveBoundingBoxTests.cpp3816 for (int layerNdx = 0; layerNdx < m_numLayers; ++layerNdx) in init() local
3818 m_layers[layerNdx].zOffset = ((float)layerNdx / (float)m_numLayers) * 2.0f - 1.0f; in init()
3819 m_layers[layerNdx].zScale = (2.0f / (float)m_numLayers); in init()
3820 …m_layers[layerNdx].color1 = (layerNdx == 0) ? (tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f)) : (tcu::Vec4(0.0… in init()
3821 …m_layers[layerNdx].color2 = (layerNdx == 0) ? (tcu::Vec4(1.0f, 1.0f, 0.0f, 1.0f)) : (tcu::Vec4(1.0… in init()
3873 for (int layerNdx = 0; layerNdx < m_numLayers; ++layerNdx) in iterate() local
3875 gl.uniform1f(depthBiasLocation, m_layers[layerNdx].zOffset); in iterate()
3876 gl.uniform1f(depthScaleLocation, m_layers[layerNdx].zScale); in iterate()
3877 gl.uniform4fv(color1Location, 1, m_layers[layerNdx].color1.getPtr()); in iterate()
3878 gl.uniform4fv(color2Location, 1, m_layers[layerNdx].color2.getPtr()); in iterate()
[all …]
Des31fTextureFormatTests.cpp108 bool testLayerFace (int layerNdx);
207 const int layerNdx = layerFaceNdx / 6; in testLayerFace() local
217 …ubeArray(texCoord, face, tcu::Vec2(0.0f, 0.0f), tcu::Vec2(1.0f, 1.0f), tcu::Vec2((float)layerNdx)); in testLayerFace()
/external/deqp/modules/gles31/stress/
Des31sTessellationGeometryInteractionTests.cpp79 bool verifyResultLayer (int layerNdx, const tcu::Surface& dst);
379 bool GridRenderCase::verifyResultLayer (int layerNdx, const tcu::Surface& image) in verifyResultLayer() argument
386 …m_testCtx.getLog() << tcu::TestLog::Message << "Verifying output layer " << layerNdx << tcu::Test… in verifyResultLayer()
/external/deqp/external/vulkancts/modules/vulkan/texture/
DvktTextureFilteringTests.cpp564 for (int layerNdx = 0; layerNdx < m_testParameters.numLayers; layerNdx++) in Texture2DArrayFilteringTestInstance() local
566 const tcu::PixelBufferAccess levelBuf = m_textures[0]->getLevel(levelNdx, layerNdx); in Texture2DArrayFilteringTestInstance()
568 const tcu::IVec4 swz = levelSwz[layerNdx%DE_LENGTH_OF_ARRAY(levelSwz)]; in Texture2DArrayFilteringTestInstance()
579 for (int layerNdx = 0; layerNdx < m_testParameters.numLayers; layerNdx++) in Texture2DArrayFilteringTestInstance() local
581 const tcu::PixelBufferAccess levelBuf = m_textures[1]->getLevel(levelNdx, layerNdx); in Texture2DArrayFilteringTestInstance()
584 const deUint32 rgb = step * (levelNdx + layerNdx*numLevels); in Texture2DArrayFilteringTestInstance()
/external/deqp/modules/gles3/functional/
Des3fTextureFilteringTests.cpp783 for (int layerNdx = 0; layerNdx < m_numLayers; layerNdx++) in init() local
785 const tcu::IVec4 swz = levelSwz[layerNdx%DE_LENGTH_OF_ARRAY(levelSwz)]; in init()
789 …tcu::fillWithComponentGradients(tcu::getSubregion(levelBuf, 0, 0, layerNdx, levelBuf.getWidth(), l… in init()
800 for (int layerNdx = 0; layerNdx < m_numLayers; layerNdx++) in init() local
803 const deUint32 rgb = step * (levelNdx + layerNdx*numLevels); in init()
807 …tcu::fillWithGrid(tcu::getSubregion(levelBuf, 0, 0, layerNdx, levelBuf.getWidth(), levelBuf.getHei… in init()
/external/deqp/external/vulkancts/framework/vulkan/
DvkImageUtil.cpp3093 for (deUint32 layerNdx = 0; layerNdx < imageCreateInfo.arrayLayers; ++layerNdx) in allocateAndBindSparseImage() local
3133 layerNdx, // uint32_t arrayLayer; in allocateAndBindSparseImage()
3152 …if (layerNdx == 0 || (aspectRequirements.formatProperties.flags & VK_SPARSE_IMAGE_FORMAT_SINGLE_MI… in allocateAndBindSparseImage()
3165 …aspectRequirements.imageMipTailOffset + layerNdx * aspectRequirements.imageMipTailStride, // VkDev… in allocateAndBindSparseImage()
3186 …if (layerNdx == 0 || (metadataAspectRequirements.formatProperties.flags & VK_SPARSE_IMAGE_FORMAT_S… in allocateAndBindSparseImage()
3199 layerNdx * metadataAspectRequirements.imageMipTailStride, // VkDeviceSize resourceOffset; in allocateAndBindSparseImage()
/external/deqp/framework/opengl/
DgluTextureTestUtil.hpp174 void computeQuadTexCoord1DArray (std::vector<float>& dst, int layerNdx, float left, float right);
176 void computeQuadTexCoord2DArray (std::vector<float>& dst, int layerNdx, const tcu::Vec2& bottomL…
/external/deqp/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationGeometryGridRenderTests.cpp484 …verifyResultLayer (tcu::TestLog& log, const tcu::ConstPixelBufferAccess& image, const int layerNdx) in verifyResultLayer() argument
491 log << tcu::TestLog::Message << "Verifying output layer " << layerNdx << tcu::TestLog::EndMessage; in verifyResultLayer()

12