/external/angle/src/tests/gl_tests/ |
D | MipmapTest.cpp | 187 createRGBInitData(getWindowWidth(), getWindowHeight(), 0, 0, 255); // Blue in testSetUp() 189 createRGBInitData(getWindowWidth(), getWindowHeight(), 255, 255, 255); // White in testSetUp() 191 createRGBInitData((getWindowWidth() / 2), (getWindowHeight() / 2), 0, 255, 0); // Green in testSetUp() 193 createRGBInitData((getWindowWidth() / 4), (getWindowHeight() / 4), 255, 0, 0); // Red in testSetUp() 200 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, getWindowWidth(), getWindowHeight(), 0, GL_RGB, in testSetUp() 205 ASSERT_EQ(getWindowWidth(), getWindowHeight()); in testSetUp() 210 TexImageCubeMapFaces(0, GL_RGB, getWindowWidth(), GL_RGB, GL_UNSIGNED_BYTE, nullptr); in testSetUp() 211 glTexImage2D(GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, 0, GL_RGB, getWindowWidth(), getWindowWidth(), in testSetUp() 452 const int w = getWindowWidth() - 1; in verifyAllMips() 505 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, getWindowWidth(), getWindowHeight(), 0, GL_RGB, in TEST_P() [all …]
|
D | ClipDistanceTest.cpp | 98 for (int x = 0; x < getWindowWidth() / 4 - 1; ++x) in TEST_P() 107 for (int x = getWindowWidth() / 4 + 2; x < getWindowWidth(); ++x) in TEST_P() 126 for (int x = 0; x < getWindowWidth() / 4 - 1; ++x) in TEST_P() 135 for (int x = getWindowWidth() / 4 + 2; x < getWindowWidth(); ++x) in TEST_P() 148 for (int x = 0; x < getWindowWidth(); ++x) in TEST_P() 205 for (int x = 0; x < getWindowWidth() / 4 - 1; ++x) in TEST_P() 215 for (int x = getWindowWidth() / 4 + 2; x < getWindowWidth() / 2; ++x) in TEST_P() 225 for (int x = getWindowWidth() / 2; x < getWindowWidth(); ++x) in TEST_P() 227 if (x < getWindowWidth() * 3 / 2 - y - 1 && x < getWindowWidth() * 3 / 4 - 1) in TEST_P() 232 else if (x > getWindowWidth() * 3 / 2 - y + 1 || x > getWindowWidth() * 3 / 4 + 1) in TEST_P() [all …]
|
D | ViewportTest.cpp | 45 glScissor(0, getWindowHeight() / 2, getWindowWidth(), getWindowHeight() / 2); in runScissoredTest() 119 if (0 <= x && x < getWindowWidth() && 0 <= y && y < getWindowHeight()) in checkPixel() 140 glScissor(0, 0, getWindowWidth(), getWindowHeight()); in testSetUp() 141 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in testSetUp() 153 glViewport(0, 0, getWindowWidth() / 4, getWindowHeight() / 4); in TEST_P() 162 glViewport(getWindowWidth() * 3 / 8, getWindowHeight() * 3 / 8, getWindowWidth() / 4, in TEST_P() 172 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P() 181 glViewport(-getWindowWidth() / 2, getWindowHeight() / 2, getWindowWidth(), getWindowHeight()); in TEST_P() 190 glViewport(0, 0, getWindowWidth() * 2, getWindowHeight() * 2); in TEST_P() 199 glViewport(-getWindowWidth() / 2, -getWindowHeight() / 2, getWindowWidth() * 2, in TEST_P() [all …]
|
D | BlitFramebufferANGLETest.cpp | 93 glTexImage2D(GL_TEXTURE_2D, 0, format, getWindowWidth(), getWindowHeight(), 0, format, in testSetUp() 96 glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH24_STENCIL8_OES, getWindowWidth(), in testSetUp() 111 glTexImage2D(GL_TEXTURE_2D, 0, format, getWindowWidth() / 2, getWindowHeight() / 2, 0, in testSetUp() 116 glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH24_STENCIL8_OES, getWindowWidth() / 2, in testSetUp() 130 glTexImage2D(GL_TEXTURE_2D, 0, format, getWindowWidth(), getWindowHeight(), 0, format, in testSetUp() 142 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, getWindowWidth(), getWindowHeight(), 0, GL_RGB, in testSetUp() 154 glTexImage2D(GL_TEXTURE_2D, 0, format, getWindowWidth() * 2, getWindowHeight() * 2, 0, in testSetUp() 169 glTexImage2D(GL_TEXTURE_2D, 0, format, getWindowWidth(), getWindowHeight(), 0, format, in testSetUp() 174 glTexImage2D(GL_TEXTURE_2D, 0, format, getWindowWidth(), getWindowHeight(), 0, format, in testSetUp() 189 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in testSetUp() [all …]
|
D | BPTCCompressedTextureTest.cpp | 122 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, 0, GLColor::green, kPixelTolerance); in TEST_P() 123 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::green, in TEST_P() 144 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, 0, GLColor::green, kPixelTolerance); in TEST_P() 145 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::green, in TEST_P() 193 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, 0, GLColor::green, kPixelTolerance); in TEST_P() 194 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::green, in TEST_P() 297 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, 0, GLColor::green, kPixelTolerance); in TEST_P() 298 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::green, in TEST_P() 322 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, 0, GLColor::green, kPixelTolerance); in TEST_P() 323 EXPECT_PIXEL_COLOR_NEAR(getWindowWidth() - 1, getWindowHeight() - 1, GLColor::green, in TEST_P() [all …]
|
D | DrawBuffersTest.cpp | 68 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in setupTest() 195 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, color) in verifyAttachment2DColor() 215 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, getColorForIndex(index)); in verifyAttachment3DOES() 221 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, getColorForIndex(index)); in verifyAttachmentLayer() 711 glTexImage3DOES(GL_TEXTURE_3D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 712 getWindowWidth(), 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); 758 glTexImage3D(GL_TEXTURE_3D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), getWindowWidth(), 798 glTexImage3D(GL_TEXTURE_2D_ARRAY, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 799 getWindowWidth(), 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); 919 glViewport(0, 0, getWindowWidth() / 2, getWindowHeight() / 2); in TEST_P() [all …]
|
D | MaxTextureSizeTest.cpp | 121 std::vector<GLubyte> pixels(getWindowWidth() * getWindowHeight() * 4); in TEST_P() 122 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, &pixels[0]); in TEST_P() 126 for (int x = 1; x < getWindowWidth(); x++) in TEST_P() 128 const GLubyte *prevPixel = &pixels[0] + (((y - 1) * getWindowWidth() + (x - 1)) * 4); in TEST_P() 129 const GLubyte *curPixel = &pixels[0] + ((y * getWindowWidth() + x) * 4); in TEST_P() 193 std::vector<GLubyte> pixels(getWindowWidth() * getWindowHeight() * 4); in TEST_P() 194 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, &pixels[0]); in TEST_P() 198 for (int x = 1; x < getWindowWidth(); x++) in TEST_P() 200 const GLubyte *prevPixel = &pixels[0] + (((y - 1) * getWindowWidth() + (x - 1)) * 4); in TEST_P() 201 const GLubyte *curPixel = &pixels[0] + ((y * getWindowWidth() + x) * 4); in TEST_P()
|
D | PbufferTest.cpp | 156 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor::blue); in TEST_P() 172 EXPECT_PIXEL_EQ(getWindowWidth() / 2, getWindowHeight() / 2, 0, 0, 255, 255); in TEST_P() 210 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P() 225 EXPECT_PIXEL_EQ(getWindowWidth() / 2, getWindowHeight() / 2, 255, 0, 255, 255); in TEST_P() 280 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P() 295 EXPECT_PIXEL_NEAR(getWindowWidth() / 2, getWindowHeight() / 2, kLinearColor[0], kLinearColor[1], in TEST_P() 353 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P() 364 EXPECT_PIXEL_NEAR(getWindowWidth() / 2, getWindowHeight() / 2, kLinearColor[0], kLinearColor[1], in TEST_P() 372 EXPECT_PIXEL_NEAR(getWindowWidth() / 2, getWindowHeight() / 2, kSrgbColor[0], kSrgbColor[1], in TEST_P() 466 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P() [all …]
|
D | ProvokingVertexTest.cpp | 66 glTexStorage2D(GL_TEXTURE_2D, 1, GL_R32I, getWindowWidth(), getWindowHeight()); in testSetUp() 184 GLfloat halfPixel = 1.0f / static_cast<GLfloat>(getWindowWidth()); in TEST_P() 221 std::vector<GLint> pixelBuffer(getWindowWidth() * getWindowHeight() * 4, 0); in TEST_P() 222 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA_INTEGER, GL_INT, in TEST_P() 237 static_cast<unsigned int>(centerX * static_cast<GLfloat>(getWindowWidth())); in TEST_P() 240 unsigned int pixelIndex = pixelY * getWindowWidth() + pixelX; in TEST_P() 270 std::vector<GLint> pixelBuffer(getWindowWidth() * getWindowHeight() * 4, 0); in TEST_P() 271 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA_INTEGER, GL_INT, in TEST_P() 293 static_cast<unsigned int>(centerX * static_cast<GLfloat>(getWindowWidth())); in TEST_P() 296 unsigned int pixelIndex = pixelY * getWindowWidth() + pixelX; in TEST_P()
|
D | SimpleOperationTest.cpp | 203 glScissor(getWindowWidth() / 4, getWindowHeight() / 4, getWindowWidth() / 2, in TEST_P() 215 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor::green); in TEST_P() 354 ASSERT_EQ(getWindowWidth(), getWindowHeight()); in TEST_P() 378 for (int x = 0; x < getWindowWidth(); x++) in TEST_P() 390 ASSERT_EQ(getWindowWidth(), getWindowHeight()); in TEST_P() 420 for (auto x = 0; x < getWindowWidth(); x++) in TEST_P() 432 ASSERT_EQ(getWindowWidth(), getWindowHeight()); in TEST_P() 456 const auto centerX = getWindowWidth() / 2; in TEST_P() 464 for (auto x = centerX, y = centerY - 1; x < getWindowWidth() && y >= 0; x++, y--) in TEST_P() 477 ASSERT_EQ(getWindowWidth(), getWindowHeight()); in testSetUp() [all …]
|
D | PixmapTest.cpp | 127 EXPECT_PIXEL_EQ(getWindowWidth() / 2, getWindowHeight() / 2, 0, 0, 255, 255); in TEST_P() 143 EXPECT_PIXEL_EQ(getWindowWidth() / 2, getWindowHeight() / 2, 0, 0, 255, 255); in TEST_P() 186 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P() 201 EXPECT_PIXEL_EQ(getWindowWidth() / 2, getWindowHeight() / 2, 255, 0, 255, 255); in TEST_P() 241 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P() 246 std::vector<unsigned int> pixelData(getWindowWidth() * getWindowHeight(), pixelValue); in TEST_P() 247 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in TEST_P() 258 EXPECT_PIXEL_EQ(getWindowWidth() / 2, getWindowHeight() / 2, 255, 0, 255, 255); in TEST_P()
|
D | DepthStencilTest.cpp | 39 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in testSetUp() 48 glRenderbufferStorage(GL_RENDERBUFFER, GL_STENCIL_INDEX8, getWindowWidth(), in testSetUp() 64 glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT24, getWindowWidth(), in testSetUp() 118 const int width = getWindowWidth(); in ensureColor() 168 const int w = getWindowWidth(); in prepareSingleEmulatedWithPacked() 361 glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT24, getWindowWidth(), getWindowHeight(), 0, in TEST_P() 372 glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT24, getWindowWidth(), in TEST_P() 407 glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA8, getWindowWidth(), getWindowHeight()); in TEST_P() 414 glRenderbufferStorage(GL_RENDERBUFFER, GL_STENCIL_INDEX8, getWindowWidth(), getWindowHeight()); in TEST_P() 457 glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA8, getWindowWidth(), getWindowHeight()); in TEST_P() [all …]
|
D | WEBGLVideoTextureTest.cpp | 82 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P() 131 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P() 199 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P() 201 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::green); in TEST_P() 203 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P() 248 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P()
|
D | LineLoopTest.cpp | 48 std::vector<GLubyte> pixels(getWindowWidth() * getWindowHeight() * 4); in checkPixels() 49 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, in checkPixels() 56 for (int x = 0; x < getWindowWidth(); x++) in checkPixels() 58 const GLubyte *pixel = &pixels[0] + ((y * getWindowWidth() + x) * 4); in checkPixels() 420 std::vector<GLColor> expectedPixels(getWindowWidth() * getWindowHeight()); in TEST_P() 421 std::vector<GLColor> renderedPixels(getWindowWidth() * getWindowHeight()); in TEST_P() 440 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() 469 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() 474 for (int x = 0; x < getWindowWidth(); ++x) in TEST_P() 476 int idx = y * getWindowWidth() + x; in TEST_P()
|
D | IncompleteTextureTest.cpp | 80 glRenderbufferStorage(GL_RENDERBUFFER, sizedInternalFormat, getWindowWidth(), in setupFramebuffer() 87 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in setupFramebuffer() 186 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() - greenTextureSize, getWindowHeight() - greenTextureSize, in TEST_P() 291 const int width = getWindowWidth() - 1; in TEST_P() 345 const int width = getWindowWidth() - 1; in TEST_P() 403 const int width = getWindowWidth() - 1; in TEST_P()
|
D | S3TCTextureSizesTest.cpp | 93 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor(0, 0, 123, 255)); in TEST_P() 98 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor(0, 0, 123, 255)); in TEST_P() 103 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor(0, 0, 123, 255)); in TEST_P() 108 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor(123, 0, 0, 255)); in TEST_P()
|
D | BlendIntegerTest.cpp | 70 glRenderbufferStorage(GL_RENDERBUFFER, internalformat, getWindowWidth(), getWindowHeight()); in runTest() 148 glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA8, getWindowWidth(), getWindowHeight()); in runTestMRT() 155 getWindowWidth(), getWindowHeight()); in runTestMRT() 161 glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA8, getWindowWidth(), getWindowHeight()); in runTestMRT()
|
D | DepthStencilFormatsTest.cpp | 835 glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8, getWindowWidth(), getWindowHeight()); in TEST_P() 840 glTexStorage2D(GL_TEXTURE_2D, 1, GL_DEPTH24_STENCIL8, getWindowWidth(), getWindowHeight()); in TEST_P() 904 glViewport(0, 0, getWindowWidth(), getWindowHeight()); in TEST_P() 910 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in TEST_P() 916 std::vector<GLuint> depthStencilData(getWindowWidth() * getWindowHeight(), 0x7fffffA9); in TEST_P() 919 glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_STENCIL, getWindowWidth(), getWindowHeight(), 0, in TEST_P() 958 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P() 971 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::red); in TEST_P() 978 EXPECT_PIXEL_RECT_EQ(0, 0, getWindowWidth(), getWindowHeight(), GLColor::black); in TEST_P() 1201 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in TEST_P() [all …]
|
D | PointSpritesTest.cpp | 412 EXPECT_PIXEL_EQ(getWindowWidth() / 2, getWindowHeight() / 2, 255, 0, 0, 255); in TEST_P() 466 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor::blue); in TEST_P() 524 GLfloat pointXPosition = (0.5f * maxPointSize) * (2.0f / (GLfloat)getWindowWidth()); in TEST_P() 542 EXPECT_PIXEL_NEAR(getWindowWidth() / 2 + 2, getWindowHeight() / 2, 255, 0, 0, 255, 4); in TEST_P() 545 EXPECT_PIXEL_NEAR(getWindowWidth() / 2 - 2, getWindowHeight() / 2, 0, 0, 0, 0, 4); in TEST_P()
|
D | OcclusionQueriesTest.cpp | 151 glViewport(0, 0, getWindowWidth() / 2, getWindowHeight()); in TEST_P() 152 glScissor(0, 0, getWindowWidth() / 2, getWindowHeight()); in TEST_P() 167 glViewport(0, 0, getWindowWidth() / 2, getWindowHeight()); in TEST_P() 168 glScissor(0, 0, getWindowWidth() / 2, getWindowHeight()); in TEST_P() 247 glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, getWindowWidth(), getWindowHeight(), 0); in TEST_P() 485 glViewport(0, 0, getWindowWidth() / 2, getWindowHeight()); in TEST_P() 486 glScissor(0, 0, getWindowWidth() / 2, getWindowHeight()); in TEST_P()
|
D | D3DImageFormatConversionTest.cpp | 114 EXPECT_PIXEL_EQ(0, getWindowWidth() - 1, 0, 0, 255, 255); in runTest() 115 EXPECT_PIXEL_EQ(getWindowHeight() - 1, getWindowWidth() - 1, 255, 255, 0, 255); in runTest()
|
D | TextureTest.cpp | 162 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in setUpFramebuffer() 363 EXPECT_PIXEL_EQ(getWindowHeight() - 1, getWindowWidth() - 1, 255, 255, 0, 255); in testFloatCopySubImage() 366 EXPECT_PIXEL_EQ(0, getWindowWidth() - 1, 0, 0, 255, 255); in testFloatCopySubImage() 1968 int px = getWindowWidth() - 1; in TEST_P() 2010 int px = getWindowWidth() / 2; in TEST_P() 2140 int width = getWindowWidth(); in TEST_P() 2211 const int width = getWindowWidth(); in TEST_P() 2277 const GLuint width = getWindowWidth(); in TEST_P() 2354 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() 2367 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() [all …]
|
D | InstancingTest.cpp | 246 int ix = static_cast<int>((kPointVertices[j] + 1.0f) / 2.0f * getWindowWidth()); in checkDrawing() 539 std::vector<GLColor> expectedPixels(getWindowWidth() * getWindowHeight()); in TEST_P() 563 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() 597 std::vector<GLColor> actualPixels(getWindowWidth() * getWindowHeight()); in TEST_P() 598 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() 606 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGBA, GL_UNSIGNED_BYTE, in TEST_P() 787 GLint pointx = static_cast<GLint>((pointIndex * 0.125f + 0.5f) * getWindowWidth()); in TEST_P()
|
/external/deqp/external/openglcts/modules/gles31/ |
D | es31cDrawIndirectTests.cpp | 224 int getWindowWidth() in getWindowWidth() function in glcts::__anone9281a0a0111::DrawIndirectBase 236 width = std::min(getWindowWidth(), 16384); // Cap width to 16384 in getDataSize() 599 float rasterSizeX = 2.0f / static_cast<float>(getWindowWidth()); in PointsGen() 709 float jigX = 0.5f / getWindowWidth(); in TrianglesAdjacencyGen() 743 float jigX = 0.5f / getWindowWidth(); in TriangleStripAdjacencyGen() 2070 CColorArray bufferRef(getWindowWidth() * getWindowHeight(), tcu::Vec4(0.1f, 0.2f, 0.3f, 1.0f)); in Run() 2071 CColorArray bufferTest(getWindowWidth() * getWindowHeight(), tcu::Vec4(0.0f)); in Run() 2072 ReadPixelsFloat<api>(0, 0, getWindowWidth(), getWindowHeight(), &bufferTest[0]); in Run() 2075 …result.sub_result(BuffersCompare(bufferTest, getWindowWidth(), getWindowHeight(), bufferRef, getWi… in Run() 2259 CColorArray bufferRef1(getWindowWidth() / 2 * getWindowHeight() / 2, colors_instanced[0]); in Run() [all …]
|
/external/deqp/external/openglcts/modules/gl/ |
D | gl4cVertexAttribBindingTests.cpp | 75 int getWindowWidth() in getWindowWidth() function in gl4cts::__anonb14fc6780111::VertexAttribBindingBase 351 std::vector<Vec3> fb(getWindowWidth() * getWindowHeight()); in Run() 352 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGB, GL_FLOAT, &fb[0][0]); in Run() 353 …if (!CheckRectColor(fb, getWindowWidth(), 0, 0, getWindowWidth(), getWindowHeight(), Vec3(0, 1, 0)… in Run() 359 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGB, GL_FLOAT, &fb[0][0]); in Run() 360 …if (!CheckRectColor(fb, getWindowWidth(), 0, 0, getWindowWidth(), getWindowHeight(), Vec3(1, 1, 0)… in Run() 3114 std::vector<Vec3> fb(getWindowWidth() * getWindowHeight()); in Run() 3115 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGB, GL_FLOAT, &fb[0][0]); in Run() 3116 …if (!CheckRectColor(fb, getWindowWidth(), 0, 0, getWindowWidth(), getWindowHeight(), Vec3(0, 1, 0)… in Run() 3128 glReadPixels(0, 0, getWindowWidth(), getWindowHeight(), GL_RGB, GL_FLOAT, &fb[0][0]); in Run() [all …]
|