Home
last modified time | relevance | path

Searched refs:sampleNdx (Results 1 – 25 of 29) sorted by relevance

12

/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineMultisampleBaseResolveAndPerSampleFetch.cpp178 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in iterate() local
180 …imagesPerSampleVec[sampleNdx] = de::SharedPtr<ImageWithMemory>(new ImageWithMemory(deviceInterface… in iterate()
217 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in iterate() local
219 attachments[firstSubpassAttachmentsCount + sampleNdx] = attachmentRSDesc; in iterate()
243 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in iterate() local
247 firstSubpassAttachmentsCount + sampleNdx, // deUint32 attachment; in iterate()
251 perSampleAttachmentRef[sampleNdx] = attachmentRef; in iterate()
280 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in iterate() local
289 &perSampleAttachmentRef[sampleNdx], // const VkAttachmentReference* pColorAttachments; in iterate()
292 1u + sampleNdx, // deUint32 preserveAttachmentCount; in iterate()
[all …]
DvktPipelineSampleLocationsUtil.hpp53 …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()
DvktPipelineSampleLocationsUtil.cpp71 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()
DvktPipelineMultisampleShaderBuiltInTests.cpp154 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in checkForErrorMS() local
156 const deUint32 errorComponent = dataPerSample[sampleNdx].getPixelUint(x, y, z)[errorCompNdx]; in checkForErrorMS()
257 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in verifyImageData() local
263 const deUint32 sampleID = dataPerSample[sampleNdx].getPixelUint(x, y, z).x(); in verifyImageData()
265 if (sampleID != sampleNdx) in verifyImageData()
385 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in verifyImageData() local
387 const deUint32 errorComponent = dataPerSample[sampleNdx].getPixelUint(x, y, z).z(); in verifyImageData()
392 …samplePositions[sampleNdx] = tcu::Vec2( (float)dataPerSample[sampleNdx].getPixelUint(x, y, z).x() … in verifyImageData()
393 (float)dataPerSample[sampleNdx].getPixelUint(x, y, z).y() / 255.0f); in verifyImageData()
407 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in verifyImageData() local
[all …]
DvktPipelineMultisampleShaderFragmentMaskTests.cpp1250 … (const void* const imageData, const TestParams& params, const deUint32 sampleNdx, const deUint32 … in getSingleSampledAccess() argument
1258 + (sampleNdx * pixelSize); in getSingleSampledAccess()
1340 …for (deUint32 sampleNdx = 0u; sampleNdx < static_cast<deUint32>(params.numColorSamples); ++sampleN… in test() local
1342 …d::string imageName = "layer_" + de::toString(layerNdx) + "_sample_" + de::toString(sampleNdx); in test()
1343 …d::string imageDesc = "Layer " + de::toString(layerNdx) + " Sample " + de::toString(sampleNdx); in test()
1344 …stPixelBufferAccess expected = getSingleSampledAccess(expectedResult, params, sampleNdx, layerNdx); in test()
1345 …ConstPixelBufferAccess actual = getSingleSampledAccess(fmaskResult, params, sampleNdx, layerNdx); in test()
DvktPipelineMultisampleSampleLocationsExtTests.cpp284 for (deUint32 sampleNdx = 0; sampleNdx < numSamplesPerPixel(pixelGrid); ++sampleNdx) in logPixelGrid() local
286 const VkSampleLocationEXT& loc = pixelGrid.getSample(gridX, gridY, sampleNdx); in logPixelGrid()
287 …log << tcu::TestLog::Message << "* Sample(" << sampleNdx <<") = " << Vec2(loc.x, loc.y) << tcu::Te… in logPixelGrid()
303 for (deUint32 sampleNdx = 0; sampleNdx < numSamplesPerPixel(pixelGrid); ++sampleNdx) in logPixelGrid() local
305 const VkSampleLocationEXT& loc = pixelGrid.getSample(gridX, gridY, sampleNdx); in logPixelGrid()
346 for (deUint32 sampleNdx = 0; sampleNdx < numSamplesPerPixel(grid); /* no increment */) in fillSampleLocationsPacked() local
356 grid.setSample(gridX, gridY, sampleNdx, location); in fillSampleLocationsPacked()
359 ++sampleNdx; // next sample in fillSampleLocationsPacked()
468 for (deUint32 sampleNdx = 0; sampleNdx < numSamplesPerPixel(pixelGrid); ++sampleNdx) in genFramebufferSampleLocations() local
470 …VkSampleLocationEXT& location = pixelGrid.getSample(x % gridSize.x(), y % gridSize.y(), sampleNdx); in genFramebufferSampleLocations()
/external/deqp/modules/egl/
DteglMakeCurrentPerfTests.cpp436 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/
Des3pBufferDataUploadTests.cpp913 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 …]
Des3pDepthTests.cpp650 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/
Des31fSampleVariableTests.cpp576 for (int sampleNdx = 0; sampleNdx < (int)resultBuffers.size(); ++sampleNdx) in verifySampleBuffers() local
577 …:TestLog::Image("Buffer" + de::toString(sampleNdx), "Sample " + de::toString(sampleNdx), resultBuf… in verifySampleBuffers()
582 for (int sampleNdx = 0; sampleNdx < (int)resultBuffers.size(); ++sampleNdx) in verifySampleBuffers() local
586 const float sampleIdColor = (float)sampleNdx / (float)m_numTargetSamples; in verifySampleBuffers()
588 …m_testCtx.getLog() << tcu::TestLog::Message << "Verifying sample " << (sampleNdx+1) << "/" << (int… in verifySampleBuffers()
589 …allOk &= verifyImageWithVerifier(resultBuffers[sampleNdx], m_testCtx.getLog(), ColorVerifier(tcu::… in verifySampleBuffers()
727 for (int sampleNdx = 0; sampleNdx < (int)resultBuffers.size(); ++sampleNdx) in verifySampleBuffers() local
728 …:TestLog::Image("Buffer" + de::toString(sampleNdx), "Sample " + de::toString(sampleNdx), resultBuf… in verifySampleBuffers()
737 for (int sampleNdx = 0; sampleNdx < (int)resultBuffers.size(); ++sampleNdx) in verifySampleBuffers() local
740 …m_testCtx.getLog() << tcu::TestLog::Message << "Verifying sample " << (sampleNdx+1) << "/" << (int… in verifySampleBuffers()
[all …]
Des31fTextureMultisampleTests.cpp149 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 …]
Des31fMultisampleShaderRenderCase.cpp622 for (int sampleNdx = 0; sampleNdx < m_numTargetSamples; ++sampleNdx) in drawOneIteration() local
623 resultBuffers[sampleNdx].setSize(m_renderSize, m_renderSize); in drawOneIteration()
647 for (int sampleNdx = 0; sampleNdx < m_numTargetSamples; ++sampleNdx) in drawOneIteration() local
649 gl.uniform1i(sampleLocation, sampleNdx); in drawOneIteration()
653 glu::readPixels(m_context.getRenderContext(), 0, 0, resultBuffers[sampleNdx].getAccess()); in drawOneIteration()
/external/deqp/framework/referencerenderer/
DrrRasterizer.cpp752 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 …]
DrrRasterizer.hpp42 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()
DrrShadingContext.hpp171 …eadFragmentDepth (const FragmentShadingContext& context, int packetNdx, int fragNdx, int sampleNdx) in readFragmentDepth() argument
175 return context.fragmentDepths[(packetNdx * 4 + fragNdx) * context.numSamples + sampleNdx]; in readFragmentDepth()
178 …(const FragmentShadingContext& context, int packetNdx, int fragNdx, int sampleNdx, float depthValu… in writeFragmentDepth() argument
182 context.fragmentDepths[(packetNdx * 4 + fragNdx) * context.numSamples + sampleNdx] = depthValue; in writeFragmentDepth()
DrrRenderer.cpp1154 for (int sampleNdx = 0; sampleNdx < numRasterizedPackets * 4 * numSamples; ++sampleNdx) in rasterizePrimitive() local
1155 …buffers.fragmentDepthBuffer[sampleNdx] = de::clamp(buffers.fragmentDepthBuffer[sampleNdx] + depthO… in rasterizePrimitive()
1163 for (int sampleNdx = 0; sampleNdx < numRasterizedPackets * 4 * numSamples; ++sampleNdx) in rasterizePrimitive() local
1164 …buffers.fragmentDepthBuffer[sampleNdx] = de::clamp(buffers.fragmentDepthBuffer[sampleNdx], depthCl… in rasterizePrimitive()
1216 for (int sampleNdx = 0; sampleNdx < numRasterizedPackets * 4 * numSamples; ++sampleNdx) in rasterizePrimitive() local
1217 …buffers.fragmentDepthBuffer[sampleNdx] = de::clamp(buffers.fragmentDepthBuffer[sampleNdx], depthCl… in rasterizePrimitive()
1281 for (int sampleNdx = 0; sampleNdx < numRasterizedPackets * 4 * numSamples; ++sampleNdx) in rasterizePrimitive() local
1282 …buffers.fragmentDepthBuffer[sampleNdx] = de::clamp(buffers.fragmentDepthBuffer[sampleNdx], depthCl… in rasterizePrimitive()
/external/deqp/executor/tools/
DxeExtractSampleLists.cpp61 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/
DvktRenderPassMultisampleTests.cpp596 …32 sampleNdx = 0; sampleNdx < de::min((deUint32)MAX_COLOR_ATTACHMENT_COUNT, sampleCount - splitSu… in createRenderPass() local
1459 for (deUint32 sampleNdx = 0; sampleNdx < m_sampleCount; sampleNdx++) in iterateInternal() local
1461 …dBuffer, *m_renderPipelineLayout, VK_SHADER_STAGE_FRAGMENT_BIT, 0u, sizeof(sampleNdx), &sampleNdx); in iterateInternal()
1490 for (deUint32 sampleNdx = 0; sampleNdx < m_sampleCount; sampleNdx++) in iterateInternal() local
1492 Allocation *dstBufMem = m_dstBufferMemory[sampleNdx].get(); in iterateInternal()
1495 const std::string name ("Sample" + de::toString(sampleNdx)); in iterateInternal()
1507 const deUint32 x1 = x ^ sampleNdx; in iterateInternal()
1508 const deUint32 y1 = y ^ sampleNdx; in iterateInternal()
1529 const deUint32 stencil = sampleNdx + 1u; in iterateInternal()
1545 m_resultCollector.fail("Compare failed for sample " + de::toString(sampleNdx)); in iterateInternal()
[all …]
/external/deqp/framework/common/
DtcuBilinearImageCompare.cpp174 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/
DvktTextureFilteringExplicitLodTests.cpp648 for (deUint32 sampleNdx = 0; sampleNdx < m_numSamples; ++sampleNdx) in verify() local
650 bool compareOK = verifier.verifySample(m_sampleArguments[sampleNdx], m_resultSamples[sampleNdx]); in verify()
660 …compareOK = relaxedVerifier.verifySample(m_sampleArguments[sampleNdx], m_resultSamples[sampleNdx]); in verify()
671 verifier.verifySampleReport(m_sampleArguments[sampleNdx], m_resultSamples[sampleNdx], report); in verify()
676 << "Sample " << sampleNdx << ".\n" in verify()
677 << "\tCoordinate: " << m_sampleArguments[sampleNdx].coord << "\n" in verify()
678 << "\tLOD: " << m_sampleArguments[sampleNdx].lod << "\n" in verify()
679 << "\tGPU Result: " << m_resultSamples[sampleNdx] << "\n\n" in verify()
/external/deqp/external/vulkancts/modules/vulkan/draw/
DvktDrawExplicitVertexParameterTests.cpp764 for (deUint32 sampleNdx = 0; sampleNdx < DE_LENGTH_OF_ARRAY(samples); sampleNdx++) in createTests() local
767 if (groupParams->useSecondaryCmdBuffer && (sampleNdx > VK_SAMPLE_COUNT_2_BIT)) in createTests()
773 if (samples[sampleNdx] == VK_SAMPLE_COUNT_1_BIT && auxQualifiers[auxNdx] != AUX_NONE) in createTests()
779 samples[sampleNdx], in createTests()
/external/deqp/external/vulkancts/modules/vulkan/imageless_framebuffer/
DvktImagelessFramebufferTests.cpp1768 for (deUint32 sampleNdx = 0; sampleNdx < sampleCount; ++sampleNdx) in iterate() local
1770 const std::string name ("Color" + de::toString(sampleNdx)); in iterate()
1776 …readOneSampleFromMultisampleImage(colorFormat, colorImage, sampleNdx, colorFormat, imageSample, im… in iterate()
1778 if (!verifyBuffer(imageBufferAlloc, colorFormat, name, ASPECT_COLOR, sampleNdx)) in iterate()
2095 for (deUint32 sampleNdx = 0; sampleNdx < sampleCount; ++sampleNdx) in iterate() local
2097 const std::string name ("Color" + de::toString(sampleNdx)); in iterate()
2103 …readOneSampleFromMultisampleImage(colorFormat, colorImage, sampleNdx, colorFormat, imageSample, im… in iterate()
2105 if (!verifyBuffer(imageBufferAlloc, colorFormat, name, ASPECT_COLOR, sampleNdx)) in iterate()
2110 for (deUint32 sampleNdx = 0; sampleNdx < sampleCount; ++sampleNdx) in iterate() local
2112 const std::string name ("Depth" + de::toString(sampleNdx)); in iterate()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderBuiltinVarTests.cpp984 for (deUint32 sampleNdx = 0; sampleNdx < (deUint32)m_samples; sampleNdx++) in validateDepthBuffer() local
986 … const float actualValue = validationBuffer.getPixel(sampleNdx + m_samples * colNdx, rowNdx).x(); in validateDepthBuffer()
987 const float markerValue = markerBuffer.getPixel(sampleNdx + m_samples * colNdx, rowNdx).x(); in validateDepthBuffer()
993 …::Message << "Mismatch at pixel (" << colNdx << "," << rowNdx << "," << sampleNdx << "): expected … in validateDepthBuffer()
1001 …::Message << "Mismatch at pixel (" << colNdx << "," << rowNdx << "," << sampleNdx << "): expected … in validateDepthBuffer()
1380 for (deUint32 sampleNdx = 0; sampleNdx < (deUint32)m_sampleCount; sampleNdx++) in validateSampleLocations() local
1382 const UVec2 pixelAddress = UVec2(sampleNdx + m_sampleCount * colNdx, rowNdx); in validateSampleLocations()
1423 for (deUint32 sampleNdx = 0; sampleNdx < (deUint32)m_sampleCount; sampleNdx++) in validateSampleLocations() local
1425 …s.begin(), locations.end(), standardSampleLocationTable[logSampleCount][sampleNdx] + Vec2(float(co… in validateSampleLocations()
1427 …match sample locations " << standardSampleLocationTable[logSampleCount][sampleNdx] << TestLog::End… in validateSampleLocations()
/external/deqp/modules/internal/
DditFrameworkTests.cpp821 for (int sampleNdx = 0; sampleNdx < numSamples; sampleNdx++) in runCase() local
823 if (dsAccess.getPixStencil(sampleNdx, x, y) != 0) in runCase()
825 const Vec4 color = interpAccess.getPixel(sampleNdx, x, y); in runCase()
829 const float depth = dsAccess.getPixDepth(sampleNdx, x, y); in runCase()
843 << "FAIL: " << tcu::IVec3(x, y, sampleNdx) in runCase()
/external/deqp/modules/gles3/functional/
Des3fFlushFinishTests.cpp431 for (int sampleNdx = 0; sampleNdx < NUM_VERIFICATION_SAMPLES; sampleNdx++) in verifyCalibration() local

12