/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineMultisampleBaseResolveAndPerSampleFetch.cpp | 174 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in iterate() local 176 …imagesPerSampleVec[sampleNdx] = de::SharedPtr<Image>(new Image(deviceInterface, device, allocator,… in iterate() 213 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in iterate() local 215 attachments[firstSubpassAttachmentsCount + sampleNdx] = attachmentRSDesc; in iterate() 239 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in iterate() local 243 firstSubpassAttachmentsCount + sampleNdx, // deUint32 attachment; in iterate() 247 perSampleAttachmentRef[sampleNdx] = attachmentRef; in iterate() 276 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in iterate() local 285 &perSampleAttachmentRef[sampleNdx], // const VkAttachmentReference* pColorAttachments; in iterate() 288 1u + sampleNdx, // deUint32 preserveAttachmentCount; in iterate() [all …]
|
D | vktPipelineMultisampleShaderBuiltInTests.cpp | 142 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in checkForErrorMS() local 144 const deUint32 errorComponent = dataPerSample[sampleNdx].getPixelUint(x, y, z)[errorCompNdx]; in checkForErrorMS() 233 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in verifyImageData() local 239 const deUint32 sampleID = dataPerSample[sampleNdx].getPixelUint(x, y, z).x(); in verifyImageData() 241 if (sampleID != sampleNdx) in verifyImageData() 361 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in verifyImageData() local 363 const deUint32 errorComponent = dataPerSample[sampleNdx].getPixelUint(x, y, z).z(); in verifyImageData() 368 …samplePositions[sampleNdx] = tcu::Vec2( (float)dataPerSample[sampleNdx].getPixelUint(x, y, z).x() … in verifyImageData() 369 (float)dataPerSample[sampleNdx].getPixelUint(x, y, z).y() / 255.0f); in verifyImageData() 383 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in verifyImageData() local [all …]
|
D | vktPipelineMultisampleSampleLocationsExtTests.cpp | 233 …const VkSampleLocationEXT& getSample (deUint32 gridX, deUint32 gridY, const deUint32 sampleNdx) co… in getSample() 235 return m_sampleLocations[getSampleIndex(gridX, gridY, sampleNdx)]; in getSample() 238 …void setSample (const deUint32 gridX, const deUint32 gridY, const deUint32 sampleNdx, const VkSamp… in setSample() argument 243 m_sampleLocations[getSampleIndex(gridX, gridY, sampleNdx)] = location; in setSample() 253 deUint32 getSampleIndex (deUint32 gridX, deUint32 gridY, const deUint32 sampleNdx) const in getSampleIndex() 257 return (gridY * m_gridSize.x() + gridX) * static_cast<deUint32>(m_numSamples) + sampleNdx; in getSampleIndex() 310 for (deUint32 sampleNdx = 0; sampleNdx < numSamplesPerPixel(pixelGrid); ++sampleNdx) in logPixelGrid() local 312 const VkSampleLocationEXT& loc = pixelGrid.getSample(gridX, gridY, sampleNdx); in logPixelGrid() 313 …log << tcu::TestLog::Message << "* Sample(" << sampleNdx <<") = " << Vec2(loc.x, loc.y) << tcu::Te… in logPixelGrid() 329 for (deUint32 sampleNdx = 0; sampleNdx < numSamplesPerPixel(pixelGrid); ++sampleNdx) in logPixelGrid() local [all …]
|
/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 | 760 for (int sampleNdx = 0; sampleNdx < NumSamples; sampleNdx++) in rasterizeMultiSample() local 762 const deInt64 ox = samplePos[sampleNdx*2 + 0]; in rasterizeMultiSample() 763 const deInt64 oy = samplePos[sampleNdx*2 + 1]; in rasterizeMultiSample() 767 e01[sampleNdx][fragNdx] = evaluateEdge(m_edge01, sx[fragNdx] + ox, sy[fragNdx] + oy); in rasterizeMultiSample() 768 e12[sampleNdx][fragNdx] = evaluateEdge(m_edge12, sx[fragNdx] + ox, sy[fragNdx] + oy); in rasterizeMultiSample() 769 e20[sampleNdx][fragNdx] = evaluateEdge(m_edge20, sx[fragNdx] + ox, sy[fragNdx] + oy); in rasterizeMultiSample() 774 for (int sampleNdx = 0; sampleNdx < NumSamples; sampleNdx++) in rasterizeMultiSample() local 776 … 0, 0, sampleNdx, isInsideCCW(m_edge01, e01[sampleNdx][0]) && isInsideCCW(m_edge12, e12[sampl… in rasterizeMultiSample() 777 …0, sampleNdx, !outX1 && isInsideCCW(m_edge01, e01[sampleNdx][1]) && isInsideCCW(m_edge12, e12[sa… in rasterizeMultiSample() 778 …1, sampleNdx, !outY1 && isInsideCCW(m_edge01, e01[sampleNdx][2]) && isInsideCCW(m_edge12, e12[sa… in rasterizeMultiSample() [all …]
|
D | rrRasterizer.hpp | 43 inline deUint64 getCoverageBit (int numSamples, int x, int y, int sampleNdx) in getCoverageBit() argument 49 return 1ull << ((x*2 + y)*numSamples + sampleNdx); in getCoverageBit() 61 inline deUint64 setCoverageValue (deUint64 mask, int numSamples, int x, int y, int sampleNdx, bool … in setCoverageValue() argument 63 const deUint64 bit = getCoverageBit(numSamples, x, y, sampleNdx); in setCoverageValue() 68 inline bool getCoverageValue (deUint64 mask, int numSamples, int x, int y, int sampleNdx) in getCoverageValue() argument 70 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 | 521 …32 sampleNdx = 0; sampleNdx < de::min((deUint32)MAX_COLOR_ATTACHMENT_COUNT, sampleCount - splitSu… in createRenderPass() local 1345 for (deUint32 sampleNdx = 0; sampleNdx < m_sampleCount; sampleNdx++) in iterateInternal() local 1347 …dBuffer, *m_renderPipelineLayout, VK_SHADER_STAGE_FRAGMENT_BIT, 0u, sizeof(sampleNdx), &sampleNdx); in iterateInternal() 1376 for (deUint32 sampleNdx = 0; sampleNdx < m_sampleCount; sampleNdx++) in iterateInternal() local 1378 Allocation *dstBufMem = m_dstBufferMemory[sampleNdx].get(); in iterateInternal() 1381 const std::string name ("Sample" + de::toString(sampleNdx)); in iterateInternal() 1393 const deUint32 x1 = x ^ sampleNdx; in iterateInternal() 1394 const deUint32 y1 = y ^ sampleNdx; in iterateInternal() 1415 const deUint32 stencil = sampleNdx + 1u; in iterateInternal() 1431 m_resultCollector.fail("Compare failed for sample " + de::toString(sampleNdx)); in iterateInternal() [all …]
|
D | vktRenderPassSubpassDependencyTests.cpp | 847 for (deUint32 sampleNdx = 0; sampleNdx < (m_blurKernel + 1); sampleNdx++) in iterateInternal() local 852 …xtureB.getAccess().getPixel(deClamp32((deInt32)x - (m_blurKernel / 2) + sampleNdx, 0u, m_width - 1… in iterateInternal() 857 …reA.getAccess().getPixel(x, deClamp32((deInt32)y - (m_blurKernel / 2) + sampleNdx, 0u, m_height - … in iterateInternal()
|
/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 | 673 for (deUint32 sampleNdx = 0; sampleNdx < m_numSamples; ++sampleNdx) in verify() local 675 if (!verifier.verifySample(m_sampleArguments[sampleNdx], m_resultSamples[sampleNdx])) in verify() 681 verifier.verifySampleReport(m_sampleArguments[sampleNdx], m_resultSamples[sampleNdx], report); in verify() 686 << "Sample " << sampleNdx << ".\n" in verify() 687 << "\tCoordinate: " << m_sampleArguments[sampleNdx].coord << "\n" in verify() 688 << "\tLOD: " << m_sampleArguments[sampleNdx].lod << "\n" in verify() 689 << "\tGPU Result: " << m_resultSamples[sampleNdx] << "\n\n" in verify()
|
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRenderBuiltinVarTests.cpp | 964 for (deUint32 sampleNdx = 0; sampleNdx < (deUint32)m_samples; sampleNdx++) in validateDepthBuffer() local 966 … const float actualValue = validationBuffer.getPixel(sampleNdx + m_samples * colNdx, rowNdx).x(); in validateDepthBuffer() 967 const float markerValue = markerBuffer.getPixel(sampleNdx + m_samples * colNdx, rowNdx).x(); in validateDepthBuffer() 973 …::Message << "Mismatch at pixel (" << colNdx << "," << rowNdx << "," << sampleNdx << "): expected … in validateDepthBuffer() 981 …::Message << "Mismatch at pixel (" << colNdx << "," << rowNdx << "," << sampleNdx << "): expected … in validateDepthBuffer() 1340 for (deUint32 sampleNdx = 0; sampleNdx < (deUint32)m_sampleCount; sampleNdx++) in validateSampleLocations() local 1342 const UVec2 pixelAddress = UVec2(sampleNdx + m_sampleCount * colNdx, rowNdx); in validateSampleLocations() 1373 for (deUint32 sampleNdx = 0; sampleNdx < (deUint32)m_sampleCount; sampleNdx++) in validateSampleLocations() local 1375 …s.begin(), locations.end(), standardSampleLocationTable[logSampleCount][sampleNdx] + Vec2(float(co… in validateSampleLocations() 1377 …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
|
/external/deqp/framework/opengl/simplereference/ |
D | sglrReferenceContext.cpp | 3245 const int sampleNdx = 0; // multisample read buffer case is already handled in blitFramebuffer() local 3252 …writeDepthOnly(dst, sampleNdx, xo, yo, src.raw().getPixDepth(sampleNdx, deFloorFloatToInt32(sX), d… in blitFramebuffer() 3266 const int sampleNdx = 0; // multisample read buffer case is already handled in blitFramebuffer() local 3272 …deUint32 srcStencil = src.raw().getPixelUint(sampleNdx, deFloorFloatToInt32(sX), deFloorFloatToInt… in blitFramebuffer() 3274 writeMaskedStencil(dst, sampleNdx, xo, yo, srcStencil, m_stencil[rr::FACETYPE_FRONT].writeMask); in blitFramebuffer()
|