Home
last modified time | relevance | path

Searched refs:referenceImage (Results 1 – 25 of 65) sorted by relevance

123

/third_party/vk-gl-cts/modules/gles2/functional/
Des2fPolygonOffsetTests.cpp156 …x, const tcu::ConstPixelBufferAccess& testImage, const tcu::ConstPixelBufferAccess& referenceImage) in verifyImages() argument
165 …faultyPixels = compareImages(log, renderCtx, referenceImage, testImage, diffMask.getAccess(), kern… in verifyImages()
171 log << TestLog::Image("Reference image", "Reference image", referenceImage); in verifyImages()
361 tcu::Surface referenceImage (m_targetSize, m_targetSize); in testPolygonOffset() local
434 tcu::clear(referenceImage.getAccess(), tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f)); in testPolygonOffset()
441 …rr::RenderTarget(rr::MultisamplePixelBufferAccess::fromSinglesampleAccess(referenceImage.getAccess… in testPolygonOffset()
449 …verifyImages(log, m_testCtx, m_context.getRenderContext(), testImage.getAccess(), referenceImage.g… in testPolygonOffset()
492 tcu::Surface referenceImage (m_targetSize, m_targetSize); in testPolygonOffset() local
571 tcu::clear(referenceImage.getAccess(), tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f)); in testPolygonOffset()
574 …verifyImages(log, m_testCtx, m_context.getRenderContext(), testImage.getAccess(), referenceImage.g… in testPolygonOffset()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fPolygonOffsetTests.cpp159 …x, const tcu::ConstPixelBufferAccess& testImage, const tcu::ConstPixelBufferAccess& referenceImage) in verifyImages() argument
168 …faultyPixels = compareImages(log, renderCtx, referenceImage, testImage, diffMask.getAccess(), kern… in verifyImages()
174 log << TestLog::Image("Reference image", "Reference image", referenceImage); in verifyImages()
364 tcu::Surface referenceImage (m_targetSize, m_targetSize); in testPolygonOffset() local
437 tcu::clear(referenceImage.getAccess(), tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f)); in testPolygonOffset()
444 …rr::RenderTarget(rr::MultisamplePixelBufferAccess::fromSinglesampleAccess(referenceImage.getAccess… in testPolygonOffset()
452 …verifyImages(log, m_testCtx, m_context.getRenderContext(), testImage.getAccess(), referenceImage.g… in testPolygonOffset()
495 tcu::Surface referenceImage (m_targetSize, m_targetSize); in testPolygonOffset() local
574 tcu::clear(referenceImage.getAccess(), tcu::Vec4(0.0f, 0.0f, 0.0f, 1.0f)); in testPolygonOffset()
577 …verifyImages(log, m_testCtx, m_context.getRenderContext(), testImage.getAccess(), referenceImage.g… in testPolygonOffset()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/tessellation/
DvktTessellationShaderInputOutputTests.cpp314 tcu::TextureLevel referenceImage; in test() local
315 …tcu::ImageIO::loadPNG(referenceImage, context.getTestContext().getArchive(), caseDef.referenceImag… in test()
320 VK_FORMAT_R32_SFLOAT, &vertexData[0], vertexBufferSize, referenceImage.getAccess()); in test()
478 tcu::TextureLevel referenceImage; in test() local
480 …tcu::ImageIO::loadPNG(referenceImage, context.getTestContext().getArchive(), caseDef.referenceImag… in test()
482 initializeWhiteReferenceImage(referenceImage, RENDER_SIZE, RENDER_SIZE); in test()
485 VK_FORMAT_R32_SFLOAT, &vertexData[0], vertexBufferSize, referenceImage.getAccess()); in test()
608 tcu::TextureLevel referenceImage; in test() local
609 …tcu::ImageIO::loadPNG(referenceImage, context.getTestContext().getArchive(), "vulkan/data/tessella… in test()
616 VK_FORMAT_R32G32B32A32_SFLOAT, vertexData, sizeof(vertexData), referenceImage.getAccess()); in test()
[all …]
DvktTessellationMiscDrawTests.cpp294 tcu::TextureLevel referenceImage; in runTest() local
295 …tcu::ImageIO::loadPNG(referenceImage, context.getTestContext().getArchive(), referenceImagePath.c_… in runTest()
298 referenceImage.getAccess(), resultImageAccess, 0.002f, tcu::COMPARE_LOG_RESULT)) in runTest()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationShaderInputOutputTests.cpp314 tcu::TextureLevel referenceImage; in test() local
315 …tcu::ImageIO::loadPNG(referenceImage, context.getTestContext().getArchive(), caseDef.referenceImag… in test()
320 VK_FORMAT_R32_SFLOAT, &vertexData[0], vertexBufferSize, referenceImage.getAccess()); in test()
478 tcu::TextureLevel referenceImage; in test() local
480 …tcu::ImageIO::loadPNG(referenceImage, context.getTestContext().getArchive(), caseDef.referenceImag… in test()
482 initializeWhiteReferenceImage(referenceImage, RENDER_SIZE, RENDER_SIZE); in test()
485 VK_FORMAT_R32_SFLOAT, &vertexData[0], vertexBufferSize, referenceImage.getAccess()); in test()
608 tcu::TextureLevel referenceImage; in test() local
609 …tcu::ImageIO::loadPNG(referenceImage, context.getTestContext().getArchive(), "vulkan/data/tessella… in test()
616 VK_FORMAT_R32G32B32A32_SFLOAT, vertexData, sizeof(vertexData), referenceImage.getAccess()); in test()
[all …]
DvktTessellationMiscDrawTests.cpp294 tcu::TextureLevel referenceImage; in runTest() local
295 …tcu::ImageIO::loadPNG(referenceImage, context.getTestContext().getArchive(), referenceImagePath.c_… in runTest()
298 referenceImage.getAccess(), resultImageAccess, 0.002f, tcu::COMPARE_LOG_RESULT)) in runTest()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/geometry/
DvktGeometryTestsUtil.cpp416 tcu::TextureLevel referenceImage; in compareWithFileImage() local
418 tcu::ImageIO::loadPNG(referenceImage, context.getTestContext().getArchive(), fileName.c_str()); in compareWithFileImage()
421 referenceImage.getAccess(), resultImage, 0.0015f, tcu::COMPARE_LOG_RESULT)) in compareWithFileImage()
423referenceImage.getAccess(), resultImage, tcu::UVec4(1u, 1u, 1u, 1u), tcu::IVec3(2,2,2), false, tcu… in compareWithFileImage()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/geometry/
DvktGeometryTestsUtil.cpp416 tcu::TextureLevel referenceImage; in compareWithFileImage() local
418 tcu::ImageIO::loadPNG(referenceImage, context.getTestContext().getArchive(), fileName.c_str()); in compareWithFileImage()
421 referenceImage.getAccess(), resultImage, 0.0015f, tcu::COMPARE_LOG_RESULT)) in compareWithFileImage()
423referenceImage.getAccess(), resultImage, tcu::UVec4(1u, 1u, 1u, 1u), tcu::IVec3(2,2,2), false, tcu… in compareWithFileImage()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/
DvktImageAstcDecodeModeTests.cpp155 Image referenceImage (vk, device, allocator, compressedImageInfo, MemoryRequirement::Any); in iterate() local
182 …Move<VkImageView> referenceView = makeImageView(vk, device, referenceImage.get(), imageViewTy… in iterate()
267 Image* inImages[] = { &testedImage, &referenceImage }; in iterate()
309 referenceImage.get(), subresourceRange), in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/
DvktImageAstcDecodeModeTests.cpp155 Image referenceImage (vk, device, allocator, compressedImageInfo, MemoryRequirement::Any); in iterate() local
182 …Move<VkImageView> referenceView = makeImageView(vk, device, referenceImage.get(), imageViewTy… in iterate()
267 Image* inImages[] = { &testedImage, &referenceImage }; in iterate()
309 referenceImage.get(), subresourceRange), in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/rasterization/
DvktRasterizationTests.cpp3036 tcu::Surface referenceImage (resultImage.getWidth(), resultImage.getHeight()); in compareAndVerifyOverestimatedDegenerate() local
3040 referenceImage.setPixel(x, y, backgroundColor); in compareAndVerifyOverestimatedDegenerate()
3051 referenceImage.setPixel(4 * (colNdx + 1), 4 * (rowNdx + 1), foregroundColor); in compareAndVerifyOverestimatedDegenerate()
3056 referenceImage.setPixel(4 * (colNdx + 1) - 1, 4 * (rowNdx + 1) - 1, foregroundColor); in compareAndVerifyOverestimatedDegenerate()
3058 referenceImage.setPixel(4 * (colNdx + 1) - 1, 4 * (rowNdx + 1), foregroundColor); in compareAndVerifyOverestimatedDegenerate()
3060 referenceImage.setPixel(4 * (colNdx + 1), 4 * (rowNdx + 1) - 1, foregroundColor); in compareAndVerifyOverestimatedDegenerate()
3072 if (resultImage.getPixel(x,y).getPacked() != referenceImage.getPixel(x,y).getPacked()) in compareAndVerifyOverestimatedDegenerate()
3087 if (resultImage.getPixel(x, y).getPacked() != referenceImage.getPixel(x, y).getPacked()) in compareAndVerifyOverestimatedDegenerate()
3097 << tcu::TestLog::Image("Reference", "Reference", referenceImage) in compareAndVerifyOverestimatedDegenerate()
3124 tcu::Surface referenceImage (resultImage.getWidth(), resultImage.getHeight()); in compareAndVerifyUnderestimatedNormal() local
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/rasterization/
DvktRasterizationTests.cpp3036 tcu::Surface referenceImage (resultImage.getWidth(), resultImage.getHeight()); in compareAndVerifyOverestimatedDegenerate() local
3040 referenceImage.setPixel(x, y, backgroundColor); in compareAndVerifyOverestimatedDegenerate()
3051 referenceImage.setPixel(4 * (colNdx + 1), 4 * (rowNdx + 1), foregroundColor); in compareAndVerifyOverestimatedDegenerate()
3056 referenceImage.setPixel(4 * (colNdx + 1) - 1, 4 * (rowNdx + 1) - 1, foregroundColor); in compareAndVerifyOverestimatedDegenerate()
3058 referenceImage.setPixel(4 * (colNdx + 1) - 1, 4 * (rowNdx + 1), foregroundColor); in compareAndVerifyOverestimatedDegenerate()
3060 referenceImage.setPixel(4 * (colNdx + 1), 4 * (rowNdx + 1) - 1, foregroundColor); in compareAndVerifyOverestimatedDegenerate()
3072 if (resultImage.getPixel(x,y).getPacked() != referenceImage.getPixel(x,y).getPacked()) in compareAndVerifyOverestimatedDegenerate()
3087 if (resultImage.getPixel(x, y).getPacked() != referenceImage.getPixel(x, y).getPacked()) in compareAndVerifyOverestimatedDegenerate()
3097 << tcu::TestLog::Image("Reference", "Reference", referenceImage) in compareAndVerifyOverestimatedDegenerate()
3124 tcu::Surface referenceImage (resultImage.getWidth(), resultImage.getHeight()); in compareAndVerifyUnderestimatedNormal() local
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/fragment_ops/
DvktFragmentOperationsEarlyFragmentTests.cpp531 tcu::TextureLevel referenceImage(mapVkFormat(colorFormat), renderSize.x(), renderSize.y()); in iterate() local
538 tcu::clear(referenceImage.getAccess(), clearColor); in iterate()
548 referenceImage.getAccess().setPixel(fillColor, x, y); in iterate()
561 referenceImage.getAccess().setPixel(fillColor, x, y); in iterate()
570 tcu::clear(referenceImage.getAccess(), clearColor); in iterate()
573 …m_context.getTestContext().getLog(), "Compare", "Result comparison", referenceImage.getAccess(), i… in iterate()
839 …const tcu::TextureLevel referenceImage = generateReferenceColorImage(mapVkFormat(colorFormat), … in iterate() local
840 …m_context.getTestContext().getLog(), "Compare", "Result comparison", referenceImage.getAccess(), i… in iterate()
1617 …const tcu::TextureLevel referenceImage = generateReferenceColorImage(mapVkFormat(colorFormat), … in iterate() local
1618 …m_context.getTestContext().getLog(), "Compare", "Result comparison", referenceImage.getAccess(), i… in iterate()
[all …]
DvktFragmentOperationsTransientAttachmentTests.cpp544 …tcu::TextureLevel referenceImage(mapVkFormat(outputFormat), m_renderSize.x(), m_renderSize.y()… in iterate() local
550 tcu::clear(referenceImage.getAccess(), clearColor); in iterate()
552 …m_context.getTestContext().getLog(), "Compare", "Result comparison", referenceImage.getAccess(), i… in iterate()
DvktFragmentOperationsScissorTests.cpp474 …tcu::PixelBufferAccess referenceImage (mapVkFormat(colorFormat), renderSize.x(), renderSize.y()… in test() local
477 applyScissor (referenceImage, caseDef.scissorArea, clearColor); in test()
480 …Compare(context.getTestContext().getLog(), "color", "Image compare", referenceImage, resultImage, … in test()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/fragment_ops/
DvktFragmentOperationsEarlyFragmentTests.cpp531 tcu::TextureLevel referenceImage(mapVkFormat(colorFormat), renderSize.x(), renderSize.y()); in iterate() local
538 tcu::clear(referenceImage.getAccess(), clearColor); in iterate()
548 referenceImage.getAccess().setPixel(fillColor, x, y); in iterate()
561 referenceImage.getAccess().setPixel(fillColor, x, y); in iterate()
570 tcu::clear(referenceImage.getAccess(), clearColor); in iterate()
573 …m_context.getTestContext().getLog(), "Compare", "Result comparison", referenceImage.getAccess(), i… in iterate()
839 …const tcu::TextureLevel referenceImage = generateReferenceColorImage(mapVkFormat(colorFormat), … in iterate() local
840 …m_context.getTestContext().getLog(), "Compare", "Result comparison", referenceImage.getAccess(), i… in iterate()
1617 …const tcu::TextureLevel referenceImage = generateReferenceColorImage(mapVkFormat(colorFormat), … in iterate() local
1618 …m_context.getTestContext().getLog(), "Compare", "Result comparison", referenceImage.getAccess(), i… in iterate()
[all …]
DvktFragmentOperationsTransientAttachmentTests.cpp544 …tcu::TextureLevel referenceImage(mapVkFormat(outputFormat), m_renderSize.x(), m_renderSize.y()… in iterate() local
550 tcu::clear(referenceImage.getAccess(), clearColor); in iterate()
552 …m_context.getTestContext().getLog(), "Compare", "Result comparison", referenceImage.getAccess(), i… in iterate()
DvktFragmentOperationsScissorTests.cpp474 …tcu::PixelBufferAccess referenceImage (mapVkFormat(colorFormat), renderSize.x(), renderSize.y()… in test() local
477 applyScissor (referenceImage, caseDef.scissorArea, clearColor); in test()
480 …Compare(context.getTestContext().getLog(), "color", "Image compare", referenceImage, resultImage, … in test()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/
DvktTransformFeedbackSimpleTests.cpp1483 tcu::TextureLevel referenceImage (textureFormat, size.width, size.height); in verifyImage() local
1484 tcu::PixelBufferAccess referenceAccess (referenceImage.getAccess()); in verifyImage()
1489 for (int y = 0; y < referenceImage.getHeight(); ++y) in verifyImage()
1491 const tcu::Vec4& validColor = y < referenceImage.getHeight() / 2 ? black : magenta; in verifyImage()
1493 for (int x = 0; x < referenceImage.getWidth(); ++x) in verifyImage()
1500 for (int y = 0; y < referenceImage.getHeight(); ++y) in verifyImage()
1501 for (int x = 0; x < referenceImage.getWidth(); ++x) in verifyImage()
1503 …const tcu::Vec4& validColor = (y >= referenceImage.getHeight() / 2) && (x >= referenceImage.getWid… in verifyImage()
1514 for (int y = 0; y < referenceImage.getHeight(); ++y) in verifyImage()
1515 for (int x = 0; x < referenceImage.getWidth(); ++x) in verifyImage()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/transform_feedback/
DvktTransformFeedbackSimpleTests.cpp1483 tcu::TextureLevel referenceImage (textureFormat, size.width, size.height); in verifyImage() local
1484 tcu::PixelBufferAccess referenceAccess (referenceImage.getAccess()); in verifyImage()
1489 for (int y = 0; y < referenceImage.getHeight(); ++y) in verifyImage()
1491 const tcu::Vec4& validColor = y < referenceImage.getHeight() / 2 ? black : magenta; in verifyImage()
1493 for (int x = 0; x < referenceImage.getWidth(); ++x) in verifyImage()
1500 for (int y = 0; y < referenceImage.getHeight(); ++y) in verifyImage()
1501 for (int x = 0; x < referenceImage.getWidth(); ++x) in verifyImage()
1503 …const tcu::Vec4& validColor = (y >= referenceImage.getHeight() / 2) && (x >= referenceImage.getWid… in verifyImage()
1514 for (int y = 0; y < referenceImage.getHeight(); ++y) in verifyImage()
1515 for (int x = 0; x < referenceImage.getWidth(); ++x) in verifyImage()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
DvktPipelineMaxVaryingsTests.cpp1121 tcu::TextureLevel referenceImage (mapVkFormat(imageFormat), renderSize.x(), renderSize.y()); in test() local
1122 tcu::clear(referenceImage.getAccess(), tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f)); in test()
1124 …if (!tcu::floatThresholdCompare(log, "Compare", "Result comparison", referenceImage.getAccess(), r… in test()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineMaxVaryingsTests.cpp1121 tcu::TextureLevel referenceImage (mapVkFormat(imageFormat), renderSize.x(), renderSize.y()); in test() local
1122 tcu::clear(referenceImage.getAccess(), tcu::Vec4(0.0f, 1.0f, 0.0f, 1.0f)); in test()
1124 …if (!tcu::floatThresholdCompare(log, "Compare", "Result comparison", referenceImage.getAccess(), r… in test()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawShaderLayerTests.cpp921 …const tcu::TextureLevel referenceImage = generateReferenceImage(mapVkFormat(colorFormat), rende… in testVertexShader() local
924 …tTestContext().getLog(), imageSetName.c_str(), imageSetDesc.c_str(), referenceImage.getAccess(), r… in testVertexShader()
980 …const tcu::TextureLevel referenceImage = generateReferenceImage(mapVkFormat(colorFormat), rende… in testTessellationShader() local
983 …tTestContext().getLog(), imageSetName.c_str(), imageSetDesc.c_str(), referenceImage.getAccess(), r… in testTessellationShader()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/
DvktDrawShaderLayerTests.cpp921 …const tcu::TextureLevel referenceImage = generateReferenceImage(mapVkFormat(colorFormat), rende… in testVertexShader() local
924 …tTestContext().getLog(), imageSetName.c_str(), imageSetDesc.c_str(), referenceImage.getAccess(), r… in testVertexShader()
980 …const tcu::TextureLevel referenceImage = generateReferenceImage(mapVkFormat(colorFormat), rende… in testTessellationShader() local
983 …tTestContext().getLog(), imageSetName.c_str(), imageSetDesc.c_str(), referenceImage.getAccess(), r… in testTessellationShader()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/
DvktRayTracingPipelineFlagsTests.cpp1145 std::vector<tcu::IVec4> referenceImage (m_params.width * m_params.height); in verifyResult() local
1156 travelRay(referenceImage, glLaunchIdExtX, glLaunchIdExtY, in verifyResult()
1167 printImage(referenceImage.data()); in verifyResult()
1172 std::vector<std::pair<tcu::IVec4, tcu::IVec2>> auxBuffer(referenceImage.size() * 4); in verifyResult()
1189 …const tcu::IVec4 requiredColor = referenceImage[refImageCoords.y() * m_params.width + refImageCoor… in verifyResult()
1192 …deUint32 referencePixelCount = computeSamePixelCount(referenceImage, center, requiredColor, floodC… in verifyResult()
1219 …const tcu::IVec4 requiredColor = referenceImage[refImageCoords.y() * m_params.width + refImageCoor… in verifyResult()
1222 …deUint32 referencePixelCount = computeSamePixelCount(referenceImage, center, requiredColor, floodC… in verifyResult()

123