/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineMultisampleBaseResolveAndPerSampleFetch.cpp | 177 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in iterate() local 179 …imagesPerSampleVec[sampleNdx] = de::SharedPtr<Image>(new Image(deviceInterface, device, allocator,… in iterate() 216 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in iterate() local 218 attachments[firstSubpassAttachmentsCount + sampleNdx] = attachmentRSDesc; in iterate() 242 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in iterate() local 246 firstSubpassAttachmentsCount + sampleNdx, // deUint32 attachment; in iterate() 250 perSampleAttachmentRef[sampleNdx] = attachmentRef; in iterate() 279 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in iterate() local 288 &perSampleAttachmentRef[sampleNdx], // const VkAttachmentReference* pColorAttachments; in iterate() 291 1u + sampleNdx, // deUint32 preserveAttachmentCount; in iterate() [all …]
|
D | vktPipelineSampleLocationsUtil.hpp | 53 …const vk::VkSampleLocationEXT& getSample (deUint32 gridX, deUint32 gridY, const deUint32 sampleNdx… in getSample() 55 return m_sampleLocations[getSampleIndex(gridX, gridY, sampleNdx)]; in getSample() 58 …void setSample (const deUint32 gridX, const deUint32 gridY, const deUint32 sampleNdx, const vk::Vk… in setSample() argument 63 m_sampleLocations[getSampleIndex(gridX, gridY, sampleNdx)] = location; in setSample() 73 deUint32 getSampleIndex (deUint32 gridX, deUint32 gridY, const deUint32 sampleNdx) const in getSampleIndex() 77 return (gridY * m_gridSize.x() + gridX) * static_cast<deUint32>(m_numSamples) + sampleNdx; in getSampleIndex()
|
D | vktPipelineMultisampleShaderBuiltInTests.cpp | 145 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in checkForErrorMS() local 147 const deUint32 errorComponent = dataPerSample[sampleNdx].getPixelUint(x, y, z)[errorCompNdx]; in checkForErrorMS() 241 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in verifyImageData() local 247 const deUint32 sampleID = dataPerSample[sampleNdx].getPixelUint(x, y, z).x(); in verifyImageData() 249 if (sampleID != sampleNdx) in verifyImageData() 368 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in verifyImageData() local 370 const deUint32 errorComponent = dataPerSample[sampleNdx].getPixelUint(x, y, z).z(); in verifyImageData() 375 …samplePositions[sampleNdx] = tcu::Vec2( (float)dataPerSample[sampleNdx].getPixelUint(x, y, z).x() … in verifyImageData() 376 (float)dataPerSample[sampleNdx].getPixelUint(x, y, z).y() / 255.0f); in verifyImageData() 390 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in verifyImageData() local [all …]
|
D | vktPipelineSampleLocationsUtil.cpp | 71 for (deUint32 sampleNdx = 0; sampleNdx < numSamplesPerPixel(grid); /* no increment */) in fillSampleLocationsRandom() local 84 grid.setSample(gridX, gridY, sampleNdx, location); in fillSampleLocationsRandom() 87 ++sampleNdx; // next sample in fillSampleLocationsRandom()
|
D | vktPipelineMultisampleShaderFragmentMaskTests.cpp | 1131 … (const void* const imageData, const TestParams& params, const deUint32 sampleNdx, const deUint32 … in getSingleSampledAccess() argument 1139 + (sampleNdx * pixelSize); in getSingleSampledAccess() 1220 …for (deUint32 sampleNdx = 0u; sampleNdx < static_cast<deUint32>(params.numColorSamples); ++sampleN… in test() local 1222 …d::string imageName = "layer_" + de::toString(layerNdx) + "_sample_" + de::toString(sampleNdx); in test() 1223 …d::string imageDesc = "Layer " + de::toString(layerNdx) + " Sample " + de::toString(sampleNdx); in test() 1224 …stPixelBufferAccess expected = getSingleSampledAccess(expectedResult, params, sampleNdx, layerNdx); in test() 1225 …ConstPixelBufferAccess actual = getSingleSampledAccess(fmaskResult, params, sampleNdx, layerNdx); in test()
|
D | vktPipelineMultisampleSampleLocationsExtTests.cpp | 245 for (deUint32 sampleNdx = 0; sampleNdx < numSamplesPerPixel(pixelGrid); ++sampleNdx) in logPixelGrid() local 247 const VkSampleLocationEXT& loc = pixelGrid.getSample(gridX, gridY, sampleNdx); in logPixelGrid() 248 …log << tcu::TestLog::Message << "* Sample(" << sampleNdx <<") = " << Vec2(loc.x, loc.y) << tcu::Te… in logPixelGrid() 264 for (deUint32 sampleNdx = 0; sampleNdx < numSamplesPerPixel(pixelGrid); ++sampleNdx) in logPixelGrid() local 266 const VkSampleLocationEXT& loc = pixelGrid.getSample(gridX, gridY, sampleNdx); in logPixelGrid() 307 for (deUint32 sampleNdx = 0; sampleNdx < numSamplesPerPixel(grid); /* no increment */) in fillSampleLocationsPacked() local 317 grid.setSample(gridX, gridY, sampleNdx, location); in fillSampleLocationsPacked() 320 ++sampleNdx; // next sample in fillSampleLocationsPacked() 429 for (deUint32 sampleNdx = 0; sampleNdx < numSamplesPerPixel(pixelGrid); ++sampleNdx) in genFramebufferSampleLocations() local 431 …VkSampleLocationEXT& location = pixelGrid.getSample(x % gridSize.x(), y % gridSize.y(), sampleNdx); in genFramebufferSampleLocations()
|
D | vktPipelineMultisampleMixedAttachmentSamplesTests.cpp | 439 for (deUint32 sampleNdx = 0; sampleNdx < numSamplesPerPixel; ++sampleNdx) in ndcTransformEachSampleInPixel() local 441 const Vec2& sp = access(x, y, sampleNdx); in ndcTransformEachSampleInPixel() 458 const Vec2& operator ()(const deUint32 x, const deUint32 y, const deUint32 sampleNdx) const in operator ()() 462 return m_pData[sampleNdx]; in operator ()() 474 Vec2 operator ()(const deUint32 x, const deUint32 y, const deUint32 sampleNdx) const in operator ()() 476 const VkSampleLocationEXT& sp = m_pGrid->getSample(x, y, sampleNdx); in operator ()()
|
/external/deqp/modules/egl/ |
D | teglMakeCurrentPerfTests.cpp | 436 for (int sampleNdx = 0; sampleNdx < (int)m_samples.size(); sampleNdx++) in logResults() local 437 log << TestLog::Sample << deInt64(m_samples[sampleNdx]) << TestLog::EndSample; in logResults() 456 for (int sampleNdx = 0; sampleNdx < (int)m_samples.size(); sampleNdx++) in logResults() local 458 totalTimeUs += m_samples[sampleNdx]; in logResults() 467 for (int sampleNdx = 0; sampleNdx < (int)m_samples.size(); sampleNdx++) in logResults() local 469 float iterationTimeUs = (float)(((double)m_samples[sampleNdx]) / m_spec.iterationCount); in logResults() 474 for (int sampleNdx = 0; sampleNdx < (int)m_samples.size(); sampleNdx++) in logResults() local 476 float iterationTimeUs = (float)(((double)m_samples[sampleNdx]) / m_spec.iterationCount); in logResults() 484 for (int sampleNdx = 0; sampleNdx < (int)m_samples.size(); sampleNdx++) in logResults() local 486 float iterationTimeUs = (float)(((double)m_samples[sampleNdx]) / m_spec.iterationCount); in logResults()
|
/external/deqp/modules/gles3/performance/ |
D | es3pBufferDataUploadTests.cpp | 913 for (int sampleNdx = beginNdx; sampleNdx < endNdx; sampleNdx += step) in fitLineToSamples() local 917 point.x() = (float)(samples[sampleNdx].writtenSize); in fitLineToSamples() 918 point.y() = (float)(samples[sampleNdx].duration.*target); in fitLineToSamples() 931 for (int sampleNdx = beginNdx; sampleNdx < endNdx; sampleNdx += step) in fitLineToSamples() local 935 point.x() = (float)(samples[sampleNdx].renderDataSize); in fitLineToSamples() 936 point.y() = (float)(samples[sampleNdx].duration.*target); in fitLineToSamples() 1073 for (int sampleNdx = 0; sampleNdx < (int)samples.size(); ++sampleNdx) in bucketizeSamplesUniformly() local 1075 DE_ASSERT(samples[sampleNdx].allocatedSize != 0); in bucketizeSamplesUniformly() 1077 if (!minBufferSize || samples[sampleNdx].allocatedSize < minBufferSize) in bucketizeSamplesUniformly() 1078 minBufferSize = samples[sampleNdx].allocatedSize; in bucketizeSamplesUniformly() [all …]
|
D | es3pDepthTests.cpp | 650 for (size_t sampleNdx = 0; sampleNdx < samples.size(); sampleNdx++) in logSamples() local 652 const Sample& sample = samples[sampleNdx]; in logSamples() 667 for (size_t sampleNdx = 0; sampleNdx < samples.size(); sampleNdx++) in logSamples() local 669 const Sample& sample = samples[sampleNdx]; in logSamples()
|
/external/deqp/modules/gles31/functional/ |
D | es31fSampleVariableTests.cpp | 568 for (int sampleNdx = 0; sampleNdx < (int)resultBuffers.size(); ++sampleNdx) in verifySampleBuffers() local 569 …:TestLog::Image("Buffer" + de::toString(sampleNdx), "Sample " + de::toString(sampleNdx), resultBuf… in verifySampleBuffers() 574 for (int sampleNdx = 0; sampleNdx < (int)resultBuffers.size(); ++sampleNdx) in verifySampleBuffers() local 578 const float sampleIdColor = (float)sampleNdx / (float)m_numTargetSamples; in verifySampleBuffers() 580 …m_testCtx.getLog() << tcu::TestLog::Message << "Verifying sample " << (sampleNdx+1) << "/" << (int… in verifySampleBuffers() 581 …allOk &= verifyImageWithVerifier(resultBuffers[sampleNdx], m_testCtx.getLog(), ColorVerifier(tcu::… in verifySampleBuffers() 717 for (int sampleNdx = 0; sampleNdx < (int)resultBuffers.size(); ++sampleNdx) in verifySampleBuffers() local 718 …:TestLog::Image("Buffer" + de::toString(sampleNdx), "Sample " + de::toString(sampleNdx), resultBuf… in verifySampleBuffers() 727 for (int sampleNdx = 0; sampleNdx < (int)resultBuffers.size(); ++sampleNdx) in verifySampleBuffers() local 730 …m_testCtx.getLog() << tcu::TestLog::Message << "Verifying sample " << (sampleNdx+1) << "/" << (int… in verifySampleBuffers() [all …]
|
D | es31fTextureMultisampleTests.cpp | 149 bool testMultisampleTexture (int sampleNdx); 150 void drawSample (tcu::Surface& dst, int sampleNdx); 281 for (int sampleNdx = 0; sampleNdx < m_samples; ++sampleNdx) in init() local 283 if (m_samplePositions[sampleNdx].x() < 0.0f || m_samplePositions[sampleNdx].x() > 1.0f || in init() 284 m_samplePositions[sampleNdx].y() < 0.0f || m_samplePositions[sampleNdx].y() > 1.0f) in init() 286 … Sample position of sample " << sampleNdx << " should be in range ([0, 1], [0, 1]). Got " << m_sam… in init() 385 for (int sampleNdx = 0; sampleNdx < m_samples; ++sampleNdx) in genMultisampleTexture() local 389 gl.getMultisamplefv(GL_SAMPLE_POSITION, (deUint32)sampleNdx, position); in genMultisampleTexture() 393 …m_testCtx.getLog() << tcu::TestLog::Message << "\t" << sampleNdx << ": (" << position[0] << ", " <… in genMultisampleTexture() 451 bool SamplePosRasterizationTest::testMultisampleTexture (int sampleNdx) in testMultisampleTexture() argument [all …]
|
D | es31fMultisampleShaderRenderCase.cpp | 625 for (int sampleNdx = 0; sampleNdx < m_numTargetSamples; ++sampleNdx) in drawOneIteration() local 626 resultBuffers[sampleNdx].setSize(m_renderSize, m_renderSize); in drawOneIteration() 650 for (int sampleNdx = 0; sampleNdx < m_numTargetSamples; ++sampleNdx) in drawOneIteration() local 652 gl.uniform1i(sampleLocation, sampleNdx); in drawOneIteration() 656 glu::readPixels(m_context.getRenderContext(), 0, 0, resultBuffers[sampleNdx].getAccess()); in drawOneIteration()
|
/external/deqp/framework/referencerenderer/ |
D | rrRasterizer.cpp | 752 for (int sampleNdx = 0; sampleNdx < NumSamples; sampleNdx++) in rasterizeMultiSample() local 754 const deInt64 ox = samplePos[sampleNdx*2 + 0]; in rasterizeMultiSample() 755 const deInt64 oy = samplePos[sampleNdx*2 + 1]; in rasterizeMultiSample() 759 e01[sampleNdx][fragNdx] = evaluateEdge(m_edge01, sx[fragNdx] + ox, sy[fragNdx] + oy); in rasterizeMultiSample() 760 e12[sampleNdx][fragNdx] = evaluateEdge(m_edge12, sx[fragNdx] + ox, sy[fragNdx] + oy); in rasterizeMultiSample() 761 e20[sampleNdx][fragNdx] = evaluateEdge(m_edge20, sx[fragNdx] + ox, sy[fragNdx] + oy); in rasterizeMultiSample() 766 for (int sampleNdx = 0; sampleNdx < NumSamples; sampleNdx++) in rasterizeMultiSample() local 768 … 0, 0, sampleNdx, isInsideCCW(m_edge01, e01[sampleNdx][0]) && isInsideCCW(m_edge12, e12[sampl… in rasterizeMultiSample() 769 …0, sampleNdx, !outX1 && isInsideCCW(m_edge01, e01[sampleNdx][1]) && isInsideCCW(m_edge12, e12[sa… in rasterizeMultiSample() 770 …1, sampleNdx, !outY1 && isInsideCCW(m_edge01, e01[sampleNdx][2]) && isInsideCCW(m_edge12, e12[sa… in rasterizeMultiSample() [all …]
|
D | rrRasterizer.hpp | 42 inline deUint64 getCoverageBit (int numSamples, int x, int y, int sampleNdx) in getCoverageBit() argument 48 return 1ull << ((x*2 + y)*numSamples + sampleNdx); in getCoverageBit() 60 inline deUint64 setCoverageValue (deUint64 mask, int numSamples, int x, int y, int sampleNdx, bool … in setCoverageValue() argument 62 const deUint64 bit = getCoverageBit(numSamples, x, y, sampleNdx); in setCoverageValue() 67 inline bool getCoverageValue (deUint64 mask, int numSamples, int x, int y, int sampleNdx) in getCoverageValue() argument 69 return (mask & getCoverageBit(numSamples, x, y, sampleNdx)) != 0; in getCoverageValue()
|
D | rrShadingContext.hpp | 159 …eadFragmentDepth (const FragmentShadingContext& context, int packetNdx, int fragNdx, int sampleNdx) in readFragmentDepth() argument 163 return context.fragmentDepths[(packetNdx * 4 + fragNdx) * context.numSamples + sampleNdx]; in readFragmentDepth() 166 …(const FragmentShadingContext& context, int packetNdx, int fragNdx, int sampleNdx, float depthValu… in writeFragmentDepth() argument 170 context.fragmentDepths[(packetNdx * 4 + fragNdx) * context.numSamples + sampleNdx] = depthValue; in writeFragmentDepth()
|
D | rrRenderer.cpp | 1148 for (int sampleNdx = 0; sampleNdx < numRasterizedPackets * 4 * numSamples; ++sampleNdx) in rasterizePrimitive() local 1149 …buffers.fragmentDepthBuffer[sampleNdx] = de::clamp(buffers.fragmentDepthBuffer[sampleNdx] + depthO… in rasterizePrimitive() 1157 for (int sampleNdx = 0; sampleNdx < numRasterizedPackets * 4 * numSamples; ++sampleNdx) in rasterizePrimitive() local 1158 …buffers.fragmentDepthBuffer[sampleNdx] = de::clamp(buffers.fragmentDepthBuffer[sampleNdx], depthCl… in rasterizePrimitive() 1210 for (int sampleNdx = 0; sampleNdx < numRasterizedPackets * 4 * numSamples; ++sampleNdx) in rasterizePrimitive() local 1211 …buffers.fragmentDepthBuffer[sampleNdx] = de::clamp(buffers.fragmentDepthBuffer[sampleNdx], depthCl… in rasterizePrimitive() 1275 for (int sampleNdx = 0; sampleNdx < numRasterizedPackets * 4 * numSamples; ++sampleNdx) in rasterizePrimitive() local 1276 …buffers.fragmentDepthBuffer[sampleNdx] = de::clamp(buffers.fragmentDepthBuffer[sampleNdx], depthCl… in rasterizePrimitive()
|
/external/deqp/executor/tools/ |
D | xeExtractSampleLists.cpp | 61 for (int sampleNdx = 0; sampleNdx < sampleList.samples.getNumItems(); sampleNdx++) in writeSampleList() local 63 …xe::ri::Sample& sample = static_cast<const xe::ri::Sample&>(sampleList.samples.getItem(sampleNdx)); in writeSampleList()
|
/external/deqp/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassMultisampleTests.cpp | 597 …32 sampleNdx = 0; sampleNdx < de::min((deUint32)MAX_COLOR_ATTACHMENT_COUNT, sampleCount - splitSu… in createRenderPass() local 1442 for (deUint32 sampleNdx = 0; sampleNdx < m_sampleCount; sampleNdx++) in iterateInternal() local 1444 …dBuffer, *m_renderPipelineLayout, VK_SHADER_STAGE_FRAGMENT_BIT, 0u, sizeof(sampleNdx), &sampleNdx); in iterateInternal() 1473 for (deUint32 sampleNdx = 0; sampleNdx < m_sampleCount; sampleNdx++) in iterateInternal() local 1475 Allocation *dstBufMem = m_dstBufferMemory[sampleNdx].get(); in iterateInternal() 1478 const std::string name ("Sample" + de::toString(sampleNdx)); in iterateInternal() 1490 const deUint32 x1 = x ^ sampleNdx; in iterateInternal() 1491 const deUint32 y1 = y ^ sampleNdx; in iterateInternal() 1512 const deUint32 stencil = sampleNdx + 1u; in iterateInternal() 1528 m_resultCollector.fail("Compare failed for sample " + de::toString(sampleNdx)); in iterateInternal() [all …]
|
/external/deqp/framework/common/ |
D | tcuBilinearImageCompare.cpp | 174 for (int sampleNdx = 0; sampleNdx < DE_LENGTH_OF_ARRAY(s_offsets); sampleNdx++) in comparePixelRGBA8() local 176 const int u = (x<<NUM_SUBPIXEL_BITS) + (int)s_offsets[sampleNdx][0] - (1<<NUM_SUBPIXEL_BITS); in comparePixelRGBA8() 177 const int v = (y<<NUM_SUBPIXEL_BITS) + (int)s_offsets[sampleNdx][1] - (1<<NUM_SUBPIXEL_BITS); in comparePixelRGBA8()
|
/external/deqp/external/vulkancts/modules/vulkan/texture/ |
D | vktTextureFilteringExplicitLodTests.cpp | 639 for (deUint32 sampleNdx = 0; sampleNdx < m_numSamples; ++sampleNdx) in verify() local 641 bool compareOK = verifier.verifySample(m_sampleArguments[sampleNdx], m_resultSamples[sampleNdx]); in verify() 651 …compareOK = relaxedVerifier.verifySample(m_sampleArguments[sampleNdx], m_resultSamples[sampleNdx]); in verify() 662 verifier.verifySampleReport(m_sampleArguments[sampleNdx], m_resultSamples[sampleNdx], report); in verify() 667 << "Sample " << sampleNdx << ".\n" in verify() 668 << "\tCoordinate: " << m_sampleArguments[sampleNdx].coord << "\n" in verify() 669 << "\tLOD: " << m_sampleArguments[sampleNdx].lod << "\n" in verify() 670 << "\tGPU Result: " << m_resultSamples[sampleNdx] << "\n\n" in verify()
|
/external/deqp/external/vulkancts/modules/vulkan/imageless_framebuffer/ |
D | vktImagelessFramebufferTests.cpp | 1710 for (deUint32 sampleNdx = 0; sampleNdx < sampleCount; ++sampleNdx) in iterate() local 1712 const std::string name ("Color" + de::toString(sampleNdx)); in iterate() 1718 …readOneSampleFromMultisampleImage(colorFormat, colorImage, sampleNdx, colorFormat, imageSample, im… in iterate() 1720 if (!verifyBuffer(imageBufferAlloc, colorFormat, name, ASPECT_COLOR, sampleNdx)) in iterate() 2037 for (deUint32 sampleNdx = 0; sampleNdx < sampleCount; ++sampleNdx) in iterate() local 2039 const std::string name ("Color" + de::toString(sampleNdx)); in iterate() 2045 …readOneSampleFromMultisampleImage(colorFormat, colorImage, sampleNdx, colorFormat, imageSample, im… in iterate() 2047 if (!verifyBuffer(imageBufferAlloc, colorFormat, name, ASPECT_COLOR, sampleNdx)) in iterate() 2052 for (deUint32 sampleNdx = 0; sampleNdx < sampleCount; ++sampleNdx) in iterate() local 2054 const std::string name ("Depth" + de::toString(sampleNdx)); in iterate() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRenderBuiltinVarTests.cpp | 967 for (deUint32 sampleNdx = 0; sampleNdx < (deUint32)m_samples; sampleNdx++) in validateDepthBuffer() local 969 … const float actualValue = validationBuffer.getPixel(sampleNdx + m_samples * colNdx, rowNdx).x(); in validateDepthBuffer() 970 const float markerValue = markerBuffer.getPixel(sampleNdx + m_samples * colNdx, rowNdx).x(); in validateDepthBuffer() 976 …::Message << "Mismatch at pixel (" << colNdx << "," << rowNdx << "," << sampleNdx << "): expected … in validateDepthBuffer() 984 …::Message << "Mismatch at pixel (" << colNdx << "," << rowNdx << "," << sampleNdx << "): expected … in validateDepthBuffer() 1349 for (deUint32 sampleNdx = 0; sampleNdx < (deUint32)m_sampleCount; sampleNdx++) in validateSampleLocations() local 1351 const UVec2 pixelAddress = UVec2(sampleNdx + m_sampleCount * colNdx, rowNdx); in validateSampleLocations() 1382 for (deUint32 sampleNdx = 0; sampleNdx < (deUint32)m_sampleCount; sampleNdx++) in validateSampleLocations() local 1384 …s.begin(), locations.end(), standardSampleLocationTable[logSampleCount][sampleNdx] + Vec2(float(co… in validateSampleLocations() 1386 …match sample locations " << standardSampleLocationTable[logSampleCount][sampleNdx] << TestLog::End… in validateSampleLocations()
|
/external/deqp/modules/internal/ |
D | ditFrameworkTests.cpp | 820 for (int sampleNdx = 0; sampleNdx < numSamples; sampleNdx++) in runCase() local 822 if (dsAccess.getPixStencil(sampleNdx, x, y) != 0) in runCase() 824 const Vec4 color = interpAccess.getPixel(sampleNdx, x, y); in runCase() 828 const float depth = dsAccess.getPixDepth(sampleNdx, x, y); in runCase() 842 << "FAIL: " << tcu::IVec3(x, y, sampleNdx) in runCase()
|
/external/deqp/modules/gles3/functional/ |
D | es3fFlushFinishTests.cpp | 431 for (int sampleNdx = 0; sampleNdx < NUM_VERIFICATION_SAMPLES; sampleNdx++) in verifyCalibration() local
|