Lines Matching +full:filament +full:- +full:default
3 // Use of this source code is governed by a BSD-style license that can be
302 // Make the CubeMap cube-incomplete. in TEST_P()
368 // back-end having no support for native RGB565 renderbuffer and thus having to emulate using RGBA
408 // Covers invalidating an incomplete framebuffer. This should be a no-op, but should not error.
427 // Covers sub-invalidating an incomplete framebuffer. This should be a no-op, but should not error.
493 // black ----> gradientColor in testDitherDisabledProperlyOnRGB565()
498 const std::vector<float> positions = {-1.0f, -1.0f, 0.0f, 1.0f, -1.0f, 1.0f, 0.0f, 1.0f, in testDitherDisabledProperlyOnRGB565()
499 1.0f, -1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 0.0f, 1.0f}; in testDitherDisabledProperlyOnRGB565()
528 ASSERT_NE(vertexPosLocation, -1); in testDitherDisabledProperlyOnRGB565()
534 ASSERT_NE(vertexColorLocation, -1); in testDitherDisabledProperlyOnRGB565()
567 // validate that when disabling dithering, the color selection must be coordinate-independent in testDitherDisabledProperlyOnRGB565()
606 // repro dEQP-GLES3.functional.dither.disabled.gradient_red failure
613 // repro dEQP-GLES3.functional.dither.disabled.gradient_green failure
620 // repro dEQP-GLES3.functional.dither.disabled.gradient_blue failure
627 // repro dEQP-GLES3.functional.dither.disabled.gradient_white failure
648 // pre-rotation.
665 EXPECT_PIXEL_COLOR_EQ(kWidth - 1, kWidth, GLColor::red); in TEST_P()
666 EXPECT_PIXEL_COLOR_EQ(0, kHeight - 1, GLColor::red); in TEST_P()
667 EXPECT_PIXEL_COLOR_EQ(kWidth - 1, kHeight - 1, GLColor::red); in TEST_P()
670 // Test that invalidating depth/stencil of the default framebuffer doesn't crash.
677 // Invalidate default framebuffer depth/stencil attachments in TEST_P()
682 // Test that invalidating color of the default framebuffer doesn't crash.
689 // Invalidate default framebuffer color attachment. in TEST_P()
694 // Test that invalidating all attachments on the default framebuffer doesn't crash.
701 // Invalidate all default framebuffer attachments. in TEST_P()
771 // Test that invalidating stencil-only attachment doesn't crash.
793 // Test that invalidating stencil of a depth-only attachment doesn't crash.
818 // Test that invalidating depth of a stencil-only attachment doesn't crash.
843 // Test that a scissored draw followed by subinvalidate followed by a non-scissored draw retains the
845 // partial invalidate, but also prevents bugs with Vulkan pre-rotation.
854 ASSERT_NE(colorUniformLocation, -1); in TEST_P()
902 EXPECT_PIXEL_COLOR_EQ(kWidth - 1, kWidth, GLColor::magenta); in TEST_P()
903 EXPECT_PIXEL_COLOR_EQ(0, kHeight - 1, GLColor::magenta); in TEST_P()
904 EXPECT_PIXEL_COLOR_EQ(kWidth - 1, kHeight - 1, GLColor::magenta); in TEST_P()
907 // Test that the framebuffer state tracking robustly handles a depth-only attachment being set
908 // as a depth-stencil attachment. It is equivalent to detaching the depth-stencil attachment.
942 // Create a non-complete mip chain in mip 6 in TEST_P()
1070 // Check that depth-only attachments report the correct number of samples.
1159 // There's no error specified for clearing nonexistent buffers, it's simply a no-op. in TEST_P()
1178 // There's no error specified for clearing nonexistent buffers, it's simply a no-op. in TEST_P()
1196 // There's no error specified for clearing nonexistent buffers, it's simply a no-op. in TEST_P()
1214 // There's no error specified for clearing nonexistent buffers, it's simply a no-op. in TEST_P()
1244 // There's no error specified for clearing nonexistent buffers, it's simply a no-op, so we in TEST_P()
1283 EXPECT_PIXEL_COLOR_EQ((getWindowWidth() / 2) - 1, (getWindowHeight() / 2) - 1, GLColor::green); in TEST_P()
1299 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::blue); in TEST_P()
1328 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::blue); in TEST_P()
1344 EXPECT_PIXEL_COLOR_EQ((getWindowWidth() / 2) - 1, (getWindowHeight() / 2) - 1, GLColor::green); in TEST_P()
1372 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::blue); in TEST_P()
1388 EXPECT_PIXEL_COLOR_EQ((getWindowWidth() / 2) - 1, (getWindowHeight() / 2) - 1, GLColor::green); in TEST_P()
1416 EXPECT_PIXEL_COLOR_EQ((getWindowWidth() / 2) - 1, (getWindowHeight() / 2) - 1, GLColor::blue); in TEST_P()
1432 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::green); in TEST_P()
1621 glUniform4f(colorLocation, -1.0f, -0.5f, -0.25f, -0.125f); in TEST_P()
1627 EXPECT_PIXEL_8S_NEAR(0, 0, -127, 0, 0, 127, 2); in TEST_P()
1631 EXPECT_PIXEL_8S_NEAR(0, 0, -127, -64, 0, 127, 2); in TEST_P()
1635 EXPECT_PIXEL_8S_NEAR(0, 0, -127, -64, -32, -16, 2); in TEST_P()
1644 // Test that non-trivial, e.g., reversed, blits are supported for signed normalized formats.
1665 glUniform4f(colorLocation, -1.0f, -0.5f, -0.25f, -0.125f); in TEST_P()
1690 EXPECT_PIXEL_8S_NEAR(0, 0, -127, 0, 0, 127, 2); in TEST_P()
1694 EXPECT_PIXEL_8S_NEAR(0, 0, -127, -64, 0, 127, 2); in TEST_P()
1698 EXPECT_PIXEL_8S_NEAR(0, 0, -127, -64, -32, -16, 2); in TEST_P()
1729 glUniform4f(colorLocation, -1.0f, -0.5f, -0.25f, -0.125f); in TEST_P()
1735 EXPECT_PIXEL_16S_NEAR(0, 0, -32767, 0, 0, 32767, 2); in TEST_P()
1739 EXPECT_PIXEL_16S_NEAR(0, 0, -32767, -16383, 0, 32767, 2); in TEST_P()
1743 EXPECT_PIXEL_16S_NEAR(0, 0, -32767, -16383, -8191, -4095, 2); in TEST_P()
1760 !getEGLWindow()->isFeatureEnabled(Feature::LimitMaxColorTargetBitsForTesting)); in TEST_P()
1811 !getEGLWindow()->isFeatureEnabled(Feature::LimitMaxColorTargetBitsForTesting)); in TEST_P()
1920 default: in convertGLColorToUShort()
1937 ASSERT_NE(-1, textureLocation); in texImageFollowedByFBORead()
1939 ASSERT_NE(-1, lodLocation); in texImageFollowedByFBORead()
2037 ASSERT_NE(-1, textureLocation); in copyTexImageFollowedBySampling()
2039 ASSERT_NE(-1, lodLocation); in copyTexImageFollowedBySampling()
2176 int j = target - GL_TEXTURE_CUBE_MAP_POSITIVE_X; in cubeTexImageFollowedByFBORead()
2191 GLint j = target - GL_TEXTURE_CUBE_MAP_POSITIVE_X; in cubeTexImageFollowedByFBORead()
2207 // Tests that the out-of-range staged update is reformatted when mipmapping is enabled, but not
2214 ASSERT_NE(-1, textureLocation); in TEST_P()
2216 ASSERT_NE(-1, lodLocation); in TEST_P()
2286 ASSERT_NE(-1, textureLocation); in TEST_P()
2288 ASSERT_NE(-1, lodLocation); in TEST_P()
2318 ASSERT_NE(-1, textureLocation); in TEST_P()
2320 ASSERT_NE(-1, lodLocation); in TEST_P()
2378 ASSERT_NE(-1, textureLocation); in TEST_P()
2380 ASSERT_NE(-1, lodLocation); in TEST_P()
2437 glUniform2i(0, width - 1, height - 1); in validateSamplePass()
2444 glUniform2i(0, width - 1, height); in validateSamplePass()
2451 glUniform2i(0, width, height - 1); in validateSamplePass()
2507 drawQuad(depthTestProgram, essl1_shaders::PositionAttrib(), depthValue - 0.01f); in verifyDepth()
2753 // Tests that draw to Y-flipped FBO results in correct pixels.
2782 EXPECT_PIXEL_NEAR(0, 0, kHalfPixelGradient, 255 - kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
2783 EXPECT_PIXEL_NEAR(kSize - 1, 0, 255 - kHalfPixelGradient, 255 - kHalfPixelGradient, 0, 255, in TEST_P()
2785 EXPECT_PIXEL_NEAR(0, kSize - 1, kHalfPixelGradient, kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
2786 EXPECT_PIXEL_NEAR(kSize - 1, kSize - 1, 255 - kHalfPixelGradient, kHalfPixelGradient, 0, 255, in TEST_P()
2829 EXPECT_PIXEL_NEAR(kSize - 1, 0, 255 - kHalfPixelGradient, kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
2830 EXPECT_PIXEL_NEAR(0, kSize - 1, kHalfPixelGradient, 255 - kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
2831 EXPECT_PIXEL_NEAR(kSize - 1, kSize - 1, 255 - kHalfPixelGradient, 255 - kHalfPixelGradient, 0, in TEST_P()
2891 EXPECT_PIXEL_NEAR(kSize - 1, 0, 255 - kHalfPixelGradient, kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
2892 EXPECT_PIXEL_NEAR(0, kSize - 1, kHalfPixelGradient, 255 - kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
2893 EXPECT_PIXEL_NEAR(kSize - 1, kSize - 1, 255 - kHalfPixelGradient, 255 - kHalfPixelGradient, in TEST_P()
2901 // FBO 1 -> multisample draw (red) in TEST_P()
2902 // FBO 2 -> multisample draw (green) in TEST_P()
3081 EXPECT_PIXEL_NEAR(kSize - 1, 0, 255 - kHalfPixelGradient, kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3082 EXPECT_PIXEL_NEAR(0, kSize - 1, kHalfPixelGradient, 255 - kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3083 EXPECT_PIXEL_NEAR(kSize - 1, kSize - 1, 255 - kHalfPixelGradient, 255 - kHalfPixelGradient, 0, in TEST_P()
3135 EXPECT_PIXEL_NEAR(kSize - 1, 0, 255 - kHalfPixelGradient, kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3136 EXPECT_PIXEL_NEAR(0, kSize - 1, kHalfPixelGradient, 255 - kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3137 EXPECT_PIXEL_NEAR(kSize - 1, kSize - 1, 255 - kHalfPixelGradient, 255 - kHalfPixelGradient, 0, in TEST_P()
3302 // should not get re-resolved automatically.
3341 EXPECT_PIXEL_NEAR(kSize - 1, 0, 255 - kHalfPixelGradient, kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3342 EXPECT_PIXEL_NEAR(0, kSize - 1, kHalfPixelGradient, 255 - kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3343 EXPECT_PIXEL_NEAR(kSize - 1, kSize - 1, 255 - kHalfPixelGradient, 255 - kHalfPixelGradient, 0, in TEST_P()
3353 EXPECT_PIXEL_NEAR(kSize - 1, 0, 255 - kHalfPixelGradient, kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3354 EXPECT_PIXEL_NEAR(0, kSize - 1, kHalfPixelGradient, 255 - kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3355 EXPECT_PIXEL_NEAR(kSize - 1, kSize - 1, 255 - kHalfPixelGradient, 255 - kHalfPixelGradient, 0, in TEST_P()
3360 // should not get re-resolved automatically. Resoloves color attachment 1.
3413 EXPECT_PIXEL_COLOR_EQ(kSize - 1, 0, GLColor::green); in TEST_P()
3414 EXPECT_PIXEL_COLOR_EQ(0, kSize - 1, GLColor::green); in TEST_P()
3415 EXPECT_PIXEL_COLOR_EQ(kSize - 1, kSize - 1, GLColor::green); in TEST_P()
3424 EXPECT_PIXEL_COLOR_EQ(kSize - 1, 0, GLColor::green); in TEST_P()
3425 EXPECT_PIXEL_COLOR_EQ(0, kSize - 1, GLColor::green); in TEST_P()
3426 EXPECT_PIXEL_COLOR_EQ(kSize - 1, kSize - 1, GLColor::green); in TEST_P()
3469 EXPECT_PIXEL_NEAR(kSize - 1, 0, 255 - kHalfPixelGradient, kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3470 EXPECT_PIXEL_NEAR(0, kSize - 1, kHalfPixelGradient, 255 - kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3471 EXPECT_PIXEL_NEAR(kSize - 1, kSize - 1, 255 - kHalfPixelGradient, 255 - kHalfPixelGradient, 0, in TEST_P()
3487 EXPECT_PIXEL_COLOR_EQ(kSize - 1, 0, GLColor::blue); in TEST_P()
3488 EXPECT_PIXEL_COLOR_EQ(0, kSize - 1, GLColor::blue); in TEST_P()
3489 EXPECT_PIXEL_COLOR_EQ(kSize - 1, kSize - 1, GLColor::blue); in TEST_P()
3532 EXPECT_PIXEL_NEAR(kSize - 1, 0, 255 - kHalfPixelGradient, kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3533 EXPECT_PIXEL_NEAR(0, kSize - 1, kHalfPixelGradient, 255 - kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3534 EXPECT_PIXEL_NEAR(kSize - 1, kSize - 1, 255 - kHalfPixelGradient, 255 - kHalfPixelGradient, 0, in TEST_P()
3559 EXPECT_PIXEL_COLOR_EQ(kSize - 1, 0, GLColor::blue); in TEST_P()
3560 EXPECT_PIXEL_COLOR_EQ(0, kSize - 1, GLColor::blue); in TEST_P()
3561 EXPECT_PIXEL_COLOR_EQ(kSize - 1, kSize - 1, GLColor::blue); in TEST_P()
3566 EXPECT_PIXEL_NEAR(kSize - 1, 0, 255 - kHalfPixelGradient, kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3567 EXPECT_PIXEL_NEAR(0, kSize - 1, kHalfPixelGradient, 255 - kHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3568 EXPECT_PIXEL_NEAR(kSize - 1, kSize - 1, 255 - kHalfPixelGradient, 255 - kHalfPixelGradient, 0, in TEST_P()
3572 // Test resolving a multisampled texture with blit to a non-zero level.
3616 EXPECT_PIXEL_NEAR(kWidth - 1, 0, 255 - kWidthHalfPixelGradient, kHeightHalfPixelGradient, 0, in TEST_P()
3618 EXPECT_PIXEL_NEAR(0, kHeight - 1, kWidthHalfPixelGradient, 255 - kHeightHalfPixelGradient, 0, in TEST_P()
3620 EXPECT_PIXEL_NEAR(kWidth - 1, kHeight - 1, 255 - kWidthHalfPixelGradient, in TEST_P()
3621 255 - kHeightHalfPixelGradient, 0, 255, 1.0); in TEST_P()
3626 // object's default width and height.
3679 1.0f, 1.0f, 1.0f, -1.0f, -1.0f, 1.0f, -1.0f, 1.0f, 1.0f, -1.0f, -1.0f, -1.0f, in TEST_P()
3717 // default size. in TEST_P()
3749 1.0f, 1.0f, 1.0f, -1.0f, -1.0f, 1.0f, -1.0f, 1.0f, 1.0f, -1.0f, -1.0f, -1.0f, in TEST_P()
3758 // 1. create 1st no-attachment framebuffer with size 1*1, draw, delete framebuffer in TEST_P()
3759 // 2. create 2nd no-attachment framebuffer with size 2*2, draw, delete framebuffer in TEST_P()
3778 // 1. create 1st no-attachment framebuffer with size 2*2, draw, delete framebuffer in TEST_P()
3779 // 2. create 2nd no-attachment framebuffer with size 1*1, draw, delete framebuffer in TEST_P()
3781 for (int loop = 1; loop >= 0; loop--) in TEST_P()
3798 // Altering the default width and height of attachmentless framebuffer should work fine
3822 1.0f, 1.0f, 1.0f, -1.0f, -1.0f, 1.0f, -1.0f, 1.0f, 1.0f, -1.0f, -1.0f, -1.0f, in TEST_P()
3831 // 1. create a no-attachment framebuffer with size 1*1, draw in TEST_P()
3832 // 2. change the no-attachment framebuffer size to 2*2, draw in TEST_P()
3851 // 1. create a no-attachment framebuffer with size 2*2, draw in TEST_P()
3852 // 2. change the no-attachment framebuffer size to 1*1, draw in TEST_P()
3856 for (int loop = 1; loop >= 0; loop--) in TEST_P()
3871 // Test that changing framebuffer attachment count and its' default width and height work properly
3895 1.0f, 1.0f, 1.0f, -1.0f, -1.0f, 1.0f, -1.0f, 1.0f, 1.0f, -1.0f, -1.0f, -1.0f, in TEST_P()
3903 // 1. create a no-attachment framebuffer with default size 1*1, draw in TEST_P()
3905 // 3. change the fbo default size to 3*3, draw in TEST_P()
3939 // 1. create a no-attachment framebuffer with default size 3*3, draw in TEST_P()
3941 // 3. change the fbo default size to 1*1, draw in TEST_P()
4214 ASSERT_NE(uniformLoc, -1); in TEST_P()
4233 // KHR-GLES31.core.draw_buffers_indexed.color_masks
4234 // KHR-GLES32.core.draw_buffers_indexed.color_masks
4350 abs(static_cast<int>(readBackData.R) - static_cast<int>(expected[0])) <= in TEST_P()
4352 abs(static_cast<int>(readBackData.G) - static_cast<int>(expected[1])) <= in TEST_P()
4354 abs(static_cast<int>(readBackData.B) - static_cast<int>(expected[2])) <= in TEST_P()
4356 abs(static_cast<int>(readBackData.A) - static_cast<int>(expected[3])) <= in TEST_P()
4364 // Set the framebuffer color mask back to default values in TEST_P()
4433 abs(static_cast<int>(readBackData.R) - static_cast<int>(expected[0])) <= in clearColorMorePrecisionThanFBOFormatNoDithering()
4435 abs(static_cast<int>(readBackData.G) - static_cast<int>(expected[1])) <= in clearColorMorePrecisionThanFBOFormatNoDithering()
4437 abs(static_cast<int>(readBackData.B) - static_cast<int>(expected[2])) <= in clearColorMorePrecisionThanFBOFormatNoDithering()
4439 abs(static_cast<int>(readBackData.A) - static_cast<int>(expected[3])) <= in clearColorMorePrecisionThanFBOFormatNoDithering()
4473 GLint flip_y = -1; in TEST_P()
4482 flip_y = -1; in TEST_P()
4487 // Also using non-MESA functions should work. in TEST_P()
4491 flip_y = -1; in TEST_P()
4499 flip_y = -1; in TEST_P()
4534 // Covers a bug in ANGLE's Vulkan back-end framebuffer cache which ignored depth/stencil after
4569 // Re-enable color buffer and draw one final time. This previously triggered a crash. in TEST_P()
4632 ASSERT_NE(-1, textureLoc); in TEST_P()
4633 ASSERT_NE(-1, lodLoc); in TEST_P()
4699 ASSERT_NE(-1, textureLoc); in TEST_P()
4700 ASSERT_NE(-1, lodLoc); in TEST_P()
4714 EXPECT_PIXEL_COLOR_EQ(kLevel1Size - 1, 0, GLColor::red); in TEST_P()
4819 // texture itself has been initialized with data before rendering. Filament is using it this way
4884 ASSERT_NE(-1, textureLocation); in TEST_P()
4886 ASSERT_NE(-1, lodLocation); in TEST_P()
5005 EXPECT_PIXEL_COLOR_NEAR(kLevel0Size - 1, 0, GLColor(102u, 255u, 0, 255u), 1); in TEST_P()
5006 EXPECT_PIXEL_COLOR_NEAR(0, kLevel0Size - 1, GLColor(153u, 255u, 0, 255u), 1); in TEST_P()
5007 EXPECT_PIXEL_COLOR_NEAR(kLevel0Size - 1, kLevel0Size - 1, GLColor(204u, 255u, 0, 255u), 1); in TEST_P()
5024 // Covers a bug in ANGLE's Vulkan back-end. Our VkFramebuffer cache would in some cases forget to
5098 ASSERT_NE(colorUniformLocation, -1); in TEST_P()
5195 ASSERT_NE(colorUniformLocation, -1); in TEST_P()
5222 GLint flip_y = -1; in TEST_P()
5231 flip_y = -1; in TEST_P()
5236 // Using non-MESA function should fail. in TEST_P()
5279 // Multi-context uses of textures should not cause rendering feedback loops.
5302 ASSERT_NE(-1, uniformLoc); in TEST_P()
5311 EGLDisplay display = window->getDisplay(); in TEST_P()
5312 EGLConfig config = window->getConfig(); in TEST_P()
5313 EGLSurface surface = window->getSurface(); in TEST_P()
5356 // If draw is no-op'ed, texture will not be filled appropriately. in TEST_P()
5372 // Ensure cube-incomplete attachments cause incomplete Framebuffers.
5493 // - Texture bound as sampler with MAX_LEVEL 0
5494 // - Framebuffer bound to level 0
5495 // - Draw
5496 // - Texture MAX_LEVEL changed to 1
5497 // - Framebuffer bound to level 1
5498 // - Draw
5545 ASSERT_NE(colorUniformLocation, -1); in TEST_P()
5574 ASSERT_NE(colorUniformLocation, -1); in TEST_P()
5688 // Produces VUID-VkImageMemoryBarrier-oldLayout-01197 VVL error with a "Render pass closed due to
5799 // framebuffer feedback loop which results in VUID-VkDescriptorImageInfo-imageLayout-00344 and
5800 // VUID-vkCmdDraw-None-02699 (or VUID-vkCmdDrawIndexed-None-02699 when a different draw call is
5860 // VUID-VkDescriptorImageInfo-imageLayout-00344 and VUID-vkCmdDraw-None-02699
5867 const vec2 kVertices[4] = vec2[4](vec2(-1, -1), vec2(1, -1), vec2(-1, 1), vec2(1, 1)); in TEST_P()
5910 // Render to default framebuffer with tex bound and sampled in TEST_P()
5926 // 0 -1 -1 in TEST_P()
5927 // 1 1 -1 in TEST_P()
5928 // 2 -1 1 in TEST_P()
5932 gl_Position = vec4(bit0 * 2 - 1, bit1 * 2 - 1, gl_VertexID % 2 == 0 ? -1 : 1, 1); in TEST_P()
5973 EXPECT_PIXEL_RECT_EQ(0, kRenderSplitY, kRenderSplitX, kHeight1 - kRenderSplitY, GLColor::red); in TEST_P()
5974 EXPECT_PIXEL_RECT_EQ(kRenderSplitX, 0, kWidth1 - kRenderSplitX, kRenderSplitY, GLColor::green); in TEST_P()
5975 EXPECT_PIXEL_RECT_EQ(kRenderSplitX, kRenderSplitY, kWidth1 - kRenderSplitX, in TEST_P()
5976 kHeight1 - kRenderSplitY, GLColor::black); in TEST_P()
5985 EXPECT_PIXEL_RECT_EQ(0, kRenderSplitY, kRenderSplitX, kHeight2 - kRenderSplitY, GLColor::red); in TEST_P()
5986 EXPECT_PIXEL_RECT_EQ(kRenderSplitX, 0, kWidth2 - kRenderSplitX, kRenderSplitY, GLColor::green); in TEST_P()
5987 EXPECT_PIXEL_RECT_EQ(kRenderSplitX, kRenderSplitY, kWidth2 - kRenderSplitX, in TEST_P()
5988 kHeight2 - kRenderSplitY, GLColor::black); in TEST_P()
6002 // 0 -1 -1 in TEST_P()
6003 // 1 1 -1 in TEST_P()
6004 // 2 -1 1 in TEST_P()
6008 gl_Position = vec4(bit0 * 2 - 1, bit1 * 2 - 1, gl_VertexID % 2 == 0 ? -1 : 1, 1); in TEST_P()
6033 getEGLWindow()->isFeatureEnabled(Feature::EmulatedPrerotation90) || in TEST_P()
6034 getEGLWindow()->isFeatureEnabled(Feature::EmulatedPrerotation270); in TEST_P()
6039 getOSWindow()->resize(height, width); in TEST_P()
6043 getOSWindow()->resize(width, height); in TEST_P()
6054 EXPECT_PIXEL_RECT_EQ(0, kRenderSplitY, kRenderSplitX, kHeight1 - kRenderSplitY, GLColor::red); in TEST_P()
6055 EXPECT_PIXEL_RECT_EQ(kRenderSplitX, 0, kWidth1 - kRenderSplitX, kRenderSplitY, GLColor::green); in TEST_P()
6056 EXPECT_PIXEL_RECT_EQ(kRenderSplitX, kRenderSplitY, kWidth1 - kRenderSplitX, in TEST_P()
6057 kHeight1 - kRenderSplitY, GLColor::black); in TEST_P()
6064 EXPECT_PIXEL_RECT_EQ(0, kRenderSplitY, kRenderSplitX, kHeight2 - kRenderSplitY, GLColor::red); in TEST_P()
6065 EXPECT_PIXEL_RECT_EQ(kRenderSplitX, 0, kWidth2 - kRenderSplitX, kRenderSplitY, GLColor::green); in TEST_P()
6066 EXPECT_PIXEL_RECT_EQ(kRenderSplitX, kRenderSplitY, kWidth2 - kRenderSplitX, in TEST_P()
6067 kHeight2 - kRenderSplitY, GLColor::black); in TEST_P()
6075 // Tests blits between draw and read surfaces with different pre-rotation values.
6078 // TODO(anglebug.com/7594): Untriaged bot failures with non-Vulkan backends in TEST_P()
6083 EGLConfig config = window->getConfig(); in TEST_P()
6084 EGLContext context = window->getContext(); in TEST_P()
6085 EGLDisplay dpy = window->getDisplay(); in TEST_P()
6103 EGLSurface windowSurface = window->getSurface(); in TEST_P()
6145 // Tests draw to surfaces with different pre-rotation values.
6150 EGLConfig config = window->getConfig(); in TEST_P()
6151 EGLContext context = window->getContext(); in TEST_P()
6152 EGLDisplay dpy = window->getDisplay(); in TEST_P()
6170 EGLSurface windowSurface = window->getSurface(); in TEST_P()
6236 EXPECT_PIXEL_COLOR_EQ(0, surfaceHeight - 1, GLColor::green); in TEST_P()
6237 EXPECT_PIXEL_COLOR_EQ(surfaceWidth - 1, 0, GLColor::blue); in TEST_P()
6238 EXPECT_PIXEL_COLOR_EQ(surfaceWidth - 1, surfaceHeight - 1, GLColor::yellow); in TEST_P()
6243 EXPECT_PIXEL_COLOR_EQ(0, surfaceHeight - 1, GLColor::cyan); in TEST_P()
6244 EXPECT_PIXEL_COLOR_EQ(surfaceWidth - 1, 0, GLColor::magenta); in TEST_P()
6245 EXPECT_PIXEL_COLOR_EQ(surfaceWidth - 1, surfaceHeight - 1, GLColor::white); in TEST_P()
6252 EXPECT_PIXEL_COLOR_EQ(0, surfaceHeight - 1, GLColor::green); in TEST_P()
6253 EXPECT_PIXEL_COLOR_EQ(surfaceWidth - 1, 0, GLColor::blue); in TEST_P()
6254 EXPECT_PIXEL_COLOR_EQ(surfaceWidth - 1, surfaceHeight - 1, GLColor::yellow); in TEST_P()
6259 EXPECT_PIXEL_COLOR_EQ(0, surfaceHeight - 1, GLColor::cyan); in TEST_P()
6260 EXPECT_PIXEL_COLOR_EQ(surfaceWidth - 1, 0, GLColor::magenta); in TEST_P()
6261 EXPECT_PIXEL_COLOR_EQ(surfaceWidth - 1, surfaceHeight - 1, GLColor::white); in TEST_P()
6365 // glReadPixel from default FBO with format and type retrieved from
6370 // Bind the default framebuffer in TEST_P()
6402 const std::vector<float> positions = {-1.0f, -1.0f, -1.0f, 1.0f, 1.0f, -1.0f, 1.0f, 1.0f}; in TEST_P()
6408 ASSERT_NE(vertexPosLocation, -1); in TEST_P()
6419 ASSERT_NE(texCoordLocation, -1); in TEST_P()
6549 EXPECT_PIXEL_NEAR(kWidth - 1, 0, 255 - kWidthHalfPixelGradient, kHeightHalfPixelGradient, 0, in TEST_P()
6551 EXPECT_PIXEL_NEAR(0, kHeight - 1, kWidthHalfPixelGradient, 255 - kHeightHalfPixelGradient, in TEST_P()
6553 EXPECT_PIXEL_NEAR(kWidth - 1, kHeight - 1, 255 - kWidthHalfPixelGradient, in TEST_P()
6554 255 - kHeightHalfPixelGradient, 0, 255, 1.0); in TEST_P()
6740 EXPECT_PIXEL_NEAR(kWidth - 1, 0, 255 - kWidthHalfPixelGradient, kHeightHalfPixelGradient, 0, in TEST_P()
6742 EXPECT_PIXEL_NEAR(0, kHeight - 1, kWidthHalfPixelGradient, 255 - kHeightHalfPixelGradient, 0, in TEST_P()
6744 EXPECT_PIXEL_NEAR(kWidth - 1, kHeight - 1, 255 - kWidthHalfPixelGradient, in TEST_P()
6745 255 - kHeightHalfPixelGradient, 0, 255, 1.0); in TEST_P()
7009 ASSERT_NE(colorLoc, -1); in TEST_P()
7256 ASSERT_NE(colorLoc, -1); in TEST_P()
7507 ASSERT_NE(colorLoc, -1); in TEST_P()
7704 ASSERT_NE(colorLoc, -1); in TEST_P()
7787 ASSERT_NE(colorLoc, -1); in TEST_P()