/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fPolygonOffsetTests.cpp | 156 …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/ |
D | es3fPolygonOffsetTests.cpp | 159 …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/ |
D | vktTessellationShaderInputOutputTests.cpp | 314 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 …]
|
D | vktTessellationMiscDrawTests.cpp | 294 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/ |
D | vktTessellationShaderInputOutputTests.cpp | 314 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 …]
|
D | vktTessellationMiscDrawTests.cpp | 294 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/ |
D | vktGeometryTestsUtil.cpp | 416 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() 423 …referenceImage.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/ |
D | vktGeometryTestsUtil.cpp | 416 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() 423 …referenceImage.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/ |
D | vktImageAstcDecodeModeTests.cpp | 155 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/ |
D | vktImageAstcDecodeModeTests.cpp | 155 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/ |
D | vktRasterizationTests.cpp | 3036 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/ |
D | vktRasterizationTests.cpp | 3036 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/ |
D | vktFragmentOperationsEarlyFragmentTests.cpp | 531 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 …]
|
D | vktFragmentOperationsTransientAttachmentTests.cpp | 544 …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()
|
D | vktFragmentOperationsScissorTests.cpp | 474 …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/ |
D | vktFragmentOperationsEarlyFragmentTests.cpp | 531 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 …]
|
D | vktFragmentOperationsTransientAttachmentTests.cpp | 544 …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()
|
D | vktFragmentOperationsScissorTests.cpp | 474 …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/ |
D | vktTransformFeedbackSimpleTests.cpp | 1483 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/ |
D | vktTransformFeedbackSimpleTests.cpp | 1483 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/ |
D | vktPipelineMaxVaryingsTests.cpp | 1121 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/ |
D | vktPipelineMaxVaryingsTests.cpp | 1121 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/ |
D | vktDrawShaderLayerTests.cpp | 921 …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/ |
D | vktDrawShaderLayerTests.cpp | 921 …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/ |
D | vktRayTracingPipelineFlagsTests.cpp | 1145 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()
|