/third_party/vk-gl-cts/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 | 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 | vktPipelineMultisampleShaderBuiltInTests.cpp | 154 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in checkForErrorMS() local 156 const deUint32 errorComponent = dataPerSample[sampleNdx].getPixelUint(x, y, z)[errorCompNdx]; in checkForErrorMS() 250 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in verifyImageData() local 256 const deUint32 sampleID = dataPerSample[sampleNdx].getPixelUint(x, y, z).x(); in verifyImageData() 258 if (sampleID != sampleNdx) in verifyImageData() 377 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in verifyImageData() local 379 const deUint32 errorComponent = dataPerSample[sampleNdx].getPixelUint(x, y, z).z(); in verifyImageData() 384 …samplePositions[sampleNdx] = tcu::Vec2( (float)dataPerSample[sampleNdx].getPixelUint(x, y, z).x() … in verifyImageData() 385 (float)dataPerSample[sampleNdx].getPixelUint(x, y, z).y() / 255.0f); in verifyImageData() 399 for (deUint32 sampleNdx = 0u; sampleNdx < numSamples; ++sampleNdx) in verifyImageData() local [all …]
|
D | vktPipelineMultisampleShaderFragmentMaskTests.cpp | 1132 … (const void* const imageData, const TestParams& params, const deUint32 sampleNdx, const deUint32 … in getSingleSampledAccess() argument 1140 + (sampleNdx * pixelSize); in getSingleSampledAccess() 1221 …for (deUint32 sampleNdx = 0u; sampleNdx < static_cast<deUint32>(params.numColorSamples); ++sampleN… in test() local 1223 …d::string imageName = "layer_" + de::toString(layerNdx) + "_sample_" + de::toString(sampleNdx); in test() 1224 …d::string imageDesc = "Layer " + de::toString(layerNdx) + " Sample " + de::toString(sampleNdx); in test() 1225 …stPixelBufferAccess expected = getSingleSampledAccess(expectedResult, params, sampleNdx, layerNdx); in test() 1226 …ConstPixelBufferAccess actual = getSingleSampledAccess(fmaskResult, params, sampleNdx, layerNdx); in test()
|
D | vktPipelineMultisampleSampleLocationsExtTests.cpp | 284 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()
|
/third_party/vk-gl-cts/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()
|
/third_party/vk-gl-cts/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()
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fSampleVariableTests.cpp | 576 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 …]
|
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 | 622 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()
|
/third_party/vk-gl-cts/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 | 171 …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()
|
D | rrRenderer.cpp | 1154 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()
|
/third_party/vk-gl-cts/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()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/renderpass/ |
D | vktRenderPassMultisampleTests.cpp | 596 …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 …]
|
/third_party/vk-gl-cts/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()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/ |
D | vktTextureFilteringExplicitLodTests.cpp | 641 for (deUint32 sampleNdx = 0; sampleNdx < m_numSamples; ++sampleNdx) in verify() local 643 bool compareOK = verifier.verifySample(m_sampleArguments[sampleNdx], m_resultSamples[sampleNdx]); in verify() 653 …compareOK = relaxedVerifier.verifySample(m_sampleArguments[sampleNdx], m_resultSamples[sampleNdx]); in verify() 664 verifier.verifySampleReport(m_sampleArguments[sampleNdx], m_resultSamples[sampleNdx], report); in verify() 669 << "Sample " << sampleNdx << ".\n" in verify() 670 << "\tCoordinate: " << m_sampleArguments[sampleNdx].coord << "\n" in verify() 671 << "\tLOD: " << m_sampleArguments[sampleNdx].lod << "\n" in verify() 672 << "\tGPU Result: " << m_resultSamples[sampleNdx] << "\n\n" in verify()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
D | vktDrawExplicitVertexParameterTests.cpp | 657 for (deUint32 sampleNdx = 0; sampleNdx < DE_LENGTH_OF_ARRAY(samples); sampleNdx++) in createTests() local 661 if (samples[sampleNdx] == VK_SAMPLE_COUNT_1_BIT && auxQualifiers[auxNdx] != AUX_NONE) in createTests() 667 samples[sampleNdx], in createTests()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/imageless_framebuffer/ |
D | vktImagelessFramebufferTests.cpp | 1712 for (deUint32 sampleNdx = 0; sampleNdx < sampleCount; ++sampleNdx) in iterate() local 1714 const std::string name ("Color" + de::toString(sampleNdx)); in iterate() 1720 …readOneSampleFromMultisampleImage(colorFormat, colorImage, sampleNdx, colorFormat, imageSample, im… in iterate() 1722 if (!verifyBuffer(imageBufferAlloc, colorFormat, name, ASPECT_COLOR, sampleNdx)) in iterate() 2039 for (deUint32 sampleNdx = 0; sampleNdx < sampleCount; ++sampleNdx) in iterate() local 2041 const std::string name ("Color" + de::toString(sampleNdx)); in iterate() 2047 …readOneSampleFromMultisampleImage(colorFormat, colorImage, sampleNdx, colorFormat, imageSample, im… in iterate() 2049 if (!verifyBuffer(imageBufferAlloc, colorFormat, name, ASPECT_COLOR, sampleNdx)) in iterate() 2054 for (deUint32 sampleNdx = 0; sampleNdx < sampleCount; ++sampleNdx) in iterate() local 2056 const std::string name ("Depth" + de::toString(sampleNdx)); in iterate() [all …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/ |
D | vktShaderRenderBuiltinVarTests.cpp | 976 for (deUint32 sampleNdx = 0; sampleNdx < (deUint32)m_samples; sampleNdx++) in validateDepthBuffer() local 978 … const float actualValue = validationBuffer.getPixel(sampleNdx + m_samples * colNdx, rowNdx).x(); in validateDepthBuffer() 979 const float markerValue = markerBuffer.getPixel(sampleNdx + m_samples * colNdx, rowNdx).x(); in validateDepthBuffer() 985 …::Message << "Mismatch at pixel (" << colNdx << "," << rowNdx << "," << sampleNdx << "): expected … in validateDepthBuffer() 993 …::Message << "Mismatch at pixel (" << colNdx << "," << rowNdx << "," << sampleNdx << "): expected … in validateDepthBuffer() 1370 for (deUint32 sampleNdx = 0; sampleNdx < (deUint32)m_sampleCount; sampleNdx++) in validateSampleLocations() local 1372 const UVec2 pixelAddress = UVec2(sampleNdx + m_sampleCount * colNdx, rowNdx); in validateSampleLocations() 1413 for (deUint32 sampleNdx = 0; sampleNdx < (deUint32)m_sampleCount; sampleNdx++) in validateSampleLocations() local 1415 …s.begin(), locations.end(), standardSampleLocationTable[logSampleCount][sampleNdx] + Vec2(float(co… in validateSampleLocations() 1417 …match sample locations " << standardSampleLocationTable[logSampleCount][sampleNdx] << TestLog::End… in validateSampleLocations()
|
/third_party/vk-gl-cts/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()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fFlushFinishTests.cpp | 431 for (int sampleNdx = 0; sampleNdx < NUM_VERIFICATION_SAMPLES; sampleNdx++) in verifyCalibration() local
|