1 //
2 // Copyright 2015 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // Some of the pointsprite tests below were ported from Khronos WebGL
7 // conformance test suite.
8
9 #include "test_utils/ANGLETest.h"
10 #include "test_utils/gl_raii.h"
11
12 #include <cmath>
13
14 using namespace angle;
15
16 constexpr char kVertexShaderSource[] =
17 R"(attribute vec4 vPosition;
18 uniform float uPointSize;
19 void main()
20 {
21 gl_PointSize = uPointSize;
22 gl_Position = vPosition;
23 })";
24
25 // TODO(ynovikov): Improve the tests to work with point size 1. http://anglebug.com/2553
26 constexpr GLfloat kMinMaxPointSize = 2.0f;
27
28 class PointSpritesTest : public ANGLETest
29 {
30 protected:
31 const int windowWidth = 256;
32 const int windowHeight = 256;
PointSpritesTest()33 PointSpritesTest()
34 {
35 setWindowWidth(windowWidth);
36 setWindowHeight(windowHeight);
37 setConfigRedBits(8);
38 setConfigGreenBits(8);
39 setConfigBlueBits(8);
40 setConfigAlphaBits(8);
41 }
42
s2p(float s)43 float s2p(float s) { return (s + 1.0f) * 0.5f * (GLfloat)windowWidth; }
44
testPointCoordAndPointSizeCompliance(GLProgram program)45 void testPointCoordAndPointSizeCompliance(GLProgram program)
46 {
47 glUseProgram(program);
48
49 GLfloat pointSizeRange[2] = {};
50 glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, pointSizeRange);
51
52 GLfloat maxPointSize = pointSizeRange[1];
53
54 ASSERT_TRUE(maxPointSize >= 1);
55 maxPointSize = floorf(maxPointSize);
56 ASSERT_TRUE((int)maxPointSize % 1 == 0);
57
58 maxPointSize = std::min(maxPointSize, 64.0f);
59 GLfloat pointWidth = maxPointSize / windowWidth;
60 GLint step = static_cast<GLint>(floorf(maxPointSize / 4));
61 GLint pointStep = std::max<GLint>(1, step);
62
63 GLint pointSizeLoc = glGetUniformLocation(program, "uPointSize");
64 ASSERT_GL_NO_ERROR();
65
66 glUniform1f(pointSizeLoc, maxPointSize);
67 ASSERT_GL_NO_ERROR();
68
69 GLfloat pixelOffset = ((int)maxPointSize % 2) ? (1.0f / (GLfloat)windowWidth) : 0;
70 GLBuffer vertexObject;
71
72 glBindBuffer(GL_ARRAY_BUFFER, vertexObject.get());
73 ASSERT_GL_NO_ERROR();
74
75 GLfloat thePoints[] = {-0.5f + pixelOffset, -0.5f + pixelOffset, 0.5f + pixelOffset,
76 -0.5f + pixelOffset, -0.5f + pixelOffset, 0.5f + pixelOffset,
77 0.5f + pixelOffset, 0.5f + pixelOffset};
78
79 glBufferData(GL_ARRAY_BUFFER, sizeof(thePoints), thePoints, GL_STATIC_DRAW);
80 ASSERT_GL_NO_ERROR();
81
82 glEnableVertexAttribArray(0);
83 glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 0, 0);
84
85 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
86
87 glDrawArrays(GL_POINTS, 0, 4);
88 ASSERT_GL_NO_ERROR();
89
90 for (float py = 0; py < 2; ++py)
91 {
92 for (float px = 0; px < 2; ++px)
93 {
94 float pointX = -0.5f + px + pixelOffset;
95 float pointY = -0.5f + py + pixelOffset;
96 for (int yy = 0; yy < maxPointSize; yy += pointStep)
97 {
98 for (int xx = 0; xx < maxPointSize; xx += pointStep)
99 {
100 // formula for s and t from OpenGL ES 2.0 spec section 3.3
101 float xw = s2p(pointX);
102 float yw = s2p(pointY);
103 float u = xx / maxPointSize * 2 - 1;
104 float v = yy / maxPointSize * 2 - 1;
105 int xf = static_cast<int>(floorf(s2p(pointX + u * pointWidth)));
106 int yf = static_cast<int>(floorf(s2p(pointY + v * pointWidth)));
107 float s = 0.5f + (xf + 0.5f - xw) / maxPointSize;
108 float t = 0.5f + (yf + 0.5f - yw) / maxPointSize;
109 GLubyte color[4] = {static_cast<GLubyte>(floorf(s * 255)),
110 static_cast<GLubyte>(floorf((1 - t) * 255)), 0, 255};
111 EXPECT_PIXEL_NEAR(xf, yf, color[0], color[1], color[2], color[3], 4);
112 }
113 }
114 }
115 }
116 }
117 };
118
119 // Checks gl_PointCoord and gl_PointSize
120 // https://www.khronos.org/registry/webgl/sdk/tests/conformance/glsl/variables/gl-pointcoord.html
TEST_P(PointSpritesTest,PointCoordAndPointSizeCompliance)121 TEST_P(PointSpritesTest, PointCoordAndPointSizeCompliance)
122 {
123 // TODO(jmadill): Investigate potential AMD driver bug.
124 // http://anglebug.com/1643
125 ANGLE_SKIP_TEST_IF(IsAMD() && IsDesktopOpenGL() && IsWindows());
126
127 constexpr char fs[] =
128 R"(precision mediump float;
129 void main()
130 {
131 gl_FragColor = vec4(gl_PointCoord.x, gl_PointCoord.y, 0, 1);
132 })";
133
134 ANGLE_GL_PROGRAM(program, kVertexShaderSource, fs);
135
136 testPointCoordAndPointSizeCompliance(program);
137 }
138
139 // Checks gl_PointCoord and gl_PointSize, but use the gl_PointCoord inside a function.
140 // In Vulkan, we need to inject some code into the shader to flip the Y coordinate, and we
141 // need to make sure this code injection works even if someone uses gl_PointCoord outside the
142 // main function.
TEST_P(PointSpritesTest,UsingPointCoordInsideFunction)143 TEST_P(PointSpritesTest, UsingPointCoordInsideFunction)
144 {
145 // TODO(jmadill): Investigate potential AMD driver bug.
146 // http://anglebug.com/1643
147 ANGLE_SKIP_TEST_IF(IsAMD() && IsDesktopOpenGL() && IsWindows());
148
149 constexpr char fs[] =
150 R"(precision mediump float;
151 void foo()
152 {
153 gl_FragColor = vec4(gl_PointCoord.x, gl_PointCoord.y, 0, 1);
154 }
155
156 void main()
157 {
158 foo();
159 })";
160
161 ANGLE_GL_PROGRAM(program, kVertexShaderSource, fs);
162
163 testPointCoordAndPointSizeCompliance(program);
164 }
165
166 // Verify that drawing a point without enabling any attributes succeeds
167 // https://www.khronos.org/registry/webgl/sdk/tests/conformance/rendering/point-no-attributes.html
TEST_P(PointSpritesTest,PointWithoutAttributesCompliance)168 TEST_P(PointSpritesTest, PointWithoutAttributesCompliance)
169 {
170 // TODO(jmadill): Investigate potential AMD driver bug.
171 // http://anglebug.com/1643
172 ANGLE_SKIP_TEST_IF(IsAMD() && IsDesktopOpenGL() && IsWindows());
173
174 GLfloat pointSizeRange[2] = {};
175 glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, pointSizeRange);
176 GLfloat maxPointSize = pointSizeRange[1];
177 ANGLE_SKIP_TEST_IF(maxPointSize < kMinMaxPointSize);
178
179 constexpr char kVS[] = R"(void main()
180 {
181 gl_PointSize = 2.0;
182 gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
183 })";
184
185 ANGLE_GL_PROGRAM(program, kVS, essl1_shaders::fs::Blue());
186 ASSERT_GL_NO_ERROR();
187
188 glUseProgram(program);
189
190 glDrawArrays(GL_POINTS, 0, 1);
191 ASSERT_GL_NO_ERROR();
192
193 // expect the center pixel to be blue
194 EXPECT_PIXEL_COLOR_EQ((windowWidth - 1) / 2, (windowHeight - 1) / 2, GLColor::blue);
195 }
196
197 // This is a regression test for a graphics driver bug affecting end caps on roads in MapsGL
198 // https://www.khronos.org/registry/webgl/sdk/tests/conformance/rendering/point-with-gl-pointcoord-in-fragment-shader.html
TEST_P(PointSpritesTest,PointCoordRegressionTest)199 TEST_P(PointSpritesTest, PointCoordRegressionTest)
200 {
201 // TODO(jmadill): Investigate potential AMD driver bug.
202 // http://anglebug.com/1643
203 ANGLE_SKIP_TEST_IF(IsAMD() && IsDesktopOpenGL() && IsWindows());
204
205 GLfloat pointSizeRange[2] = {};
206 glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, pointSizeRange);
207 GLfloat maxPointSize = pointSizeRange[1];
208 ANGLE_SKIP_TEST_IF(maxPointSize < kMinMaxPointSize);
209
210 constexpr char kFS[] = R"(precision mediump float;
211 varying vec4 v_color;
212 void main()
213 {
214 // It seems as long as this mathematical expression references
215 // gl_PointCoord, the fragment's color is incorrect.
216 vec2 diff = gl_PointCoord - vec2(.5, .5);
217 if (length(diff) > 0.5)
218 discard;
219
220 // The point should be a solid color.
221 gl_FragColor = v_color;
222 })";
223
224 constexpr char kVS[] = R"(varying vec4 v_color;
225 // The X and Y coordinates of the center of the point.
226 attribute vec2 a_vertex;
227 uniform float u_pointSize;
228 void main()
229 {
230 gl_PointSize = u_pointSize;
231 gl_Position = vec4(a_vertex, 0.0, 1.0);
232 // The color of the point.
233 v_color = vec4(0.0, 1.0, 0.0, 1.0);
234 })";
235
236 ANGLE_GL_PROGRAM(program, kVS, kFS);
237 ASSERT_GL_NO_ERROR();
238
239 glUseProgram(program);
240
241 glClearColor(0, 0, 0, 1);
242 glDisable(GL_DEPTH_TEST);
243 glClear(GL_COLOR_BUFFER_BIT);
244
245 GLint pointSizeLoc = glGetUniformLocation(program, "u_pointSize");
246 ASSERT_GL_NO_ERROR();
247
248 GLfloat pointSize = std::min<GLfloat>(20.0f, maxPointSize);
249 glUniform1f(pointSizeLoc, pointSize);
250 ASSERT_GL_NO_ERROR();
251
252 GLBuffer vertexObject;
253 ASSERT_GL_NO_ERROR();
254
255 glBindBuffer(GL_ARRAY_BUFFER, vertexObject.get());
256 ASSERT_GL_NO_ERROR();
257
258 GLfloat thePoints[] = {0.0f, 0.0f};
259
260 glBufferData(GL_ARRAY_BUFFER, sizeof(thePoints), thePoints, GL_STATIC_DRAW);
261 ASSERT_GL_NO_ERROR();
262
263 glEnableVertexAttribArray(0);
264 glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 0, 0);
265
266 glDrawArrays(GL_POINTS, 0, 1);
267 ASSERT_GL_NO_ERROR();
268
269 // expect the center pixel to be green
270 EXPECT_PIXEL_EQ((windowWidth - 1) / 2, (windowHeight - 1) / 2, 0, 255, 0, 255);
271 }
272
273 // Verify GL_VERTEX_PROGRAM_POINT_SIZE is enabled
274 // https://www.khronos.org/registry/webgl/sdk/tests/conformance/rendering/point-size.html
TEST_P(PointSpritesTest,PointSizeEnabledCompliance)275 TEST_P(PointSpritesTest, PointSizeEnabledCompliance)
276 {
277 // TODO(jmadill): Investigate potential AMD driver bug.
278 // http://anglebug.com/1643
279 ANGLE_SKIP_TEST_IF(IsAMD() && IsDesktopOpenGL() && IsWindows());
280
281 constexpr char kFS[] = R"(precision mediump float;
282 varying vec4 color;
283
284 void main()
285 {
286 gl_FragColor = color;
287 })";
288
289 constexpr char kVS[] = R"(attribute vec3 pos;
290 attribute vec4 colorIn;
291 uniform float pointSize;
292 varying vec4 color;
293
294 void main()
295 {
296 gl_PointSize = pointSize;
297 color = colorIn;
298 gl_Position = vec4(pos, 1.0);
299 })";
300
301 // The WebGL test is drawn on a 2x2 canvas. Emulate this by setting a 2x2 viewport.
302 glViewport(0, 0, 2, 2);
303
304 ANGLE_GL_PROGRAM(program, kVS, kFS);
305 ASSERT_GL_NO_ERROR();
306
307 glUseProgram(program);
308
309 glDisable(GL_BLEND);
310
311 // The choice of (0.4, 0.4) ensures that the centers of the surrounding
312 // pixels are not contained within the point when it is of size 1, but
313 // that they definitely are when it is of size 2.
314 GLfloat vertices[] = {0.4f, 0.4f, 0.0f};
315 GLubyte colors[] = {255, 0, 0, 255};
316
317 GLBuffer vertexObject;
318 ASSERT_GL_NO_ERROR();
319
320 glBindBuffer(GL_ARRAY_BUFFER, vertexObject.get());
321 ASSERT_GL_NO_ERROR();
322
323 glBufferData(GL_ARRAY_BUFFER, sizeof(vertices) + sizeof(colors), nullptr, GL_STATIC_DRAW);
324 ASSERT_GL_NO_ERROR();
325
326 glBufferSubData(GL_ARRAY_BUFFER, 0, sizeof(vertices), vertices);
327 ASSERT_GL_NO_ERROR();
328
329 glBufferSubData(GL_ARRAY_BUFFER, sizeof(vertices), sizeof(colors), colors);
330 ASSERT_GL_NO_ERROR();
331
332 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
333
334 glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 0, 0);
335 glEnableVertexAttribArray(0);
336
337 glVertexAttribPointer(1, 4, GL_UNSIGNED_BYTE, GL_TRUE, 0,
338 reinterpret_cast<void *>(sizeof(vertices)));
339 glEnableVertexAttribArray(1);
340
341 GLint pointSizeLoc = glGetUniformLocation(program, "pointSize");
342 ASSERT_GL_NO_ERROR();
343
344 glUniform1f(pointSizeLoc, 1.0f);
345 ASSERT_GL_NO_ERROR();
346
347 glDrawArrays(GL_POINTS, 0, static_cast<GLsizei>(ArraySize(vertices)) / 3);
348 ASSERT_GL_NO_ERROR();
349
350 // Test the pixels around the target Red pixel to ensure
351 // they are the expected color values
352 for (GLint y = 0; y < 2; ++y)
353 {
354 for (GLint x = 0; x < 2; ++x)
355 {
356 // 1x1 is expected to be a red pixel
357 // All others are black
358 GLubyte expectedColor[4] = {0, 0, 0, 0};
359 if (x == 1 && y == 1)
360 {
361 expectedColor[0] = 255;
362 expectedColor[3] = 255;
363 }
364 EXPECT_PIXEL_EQ(x, y, expectedColor[0], expectedColor[1], expectedColor[2],
365 expectedColor[3]);
366 }
367 }
368
369 GLfloat pointSizeRange[2] = {};
370 glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, pointSizeRange);
371
372 if (pointSizeRange[1] >= 2.0)
373 {
374 // Draw a point of size 2 and verify it fills the appropriate region.
375 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
376
377 glUniform1f(pointSizeLoc, 2.0f);
378 ASSERT_GL_NO_ERROR();
379
380 glDrawArrays(GL_POINTS, 0, static_cast<GLsizei>(ArraySize(vertices)) / 3);
381 ASSERT_GL_NO_ERROR();
382
383 // Test the pixels to ensure the target is ALL Red pixels
384 for (GLint y = 0; y < 2; ++y)
385 {
386 for (GLint x = 0; x < 2; ++x)
387 {
388 EXPECT_PIXEL_EQ(x, y, 255, 0, 0, 255);
389 }
390 }
391 }
392 }
393
394 // Verify that rendering works correctly when gl_PointSize is declared in a shader but isn't used
TEST_P(PointSpritesTest,PointSizeDeclaredButUnused)395 TEST_P(PointSpritesTest, PointSizeDeclaredButUnused)
396 {
397 constexpr char kVS[] = R"(attribute highp vec4 position;
398 void main(void)
399 {
400 gl_PointSize = 1.0;
401 gl_Position = position;
402 })";
403
404 ANGLE_GL_PROGRAM(program, kVS, essl1_shaders::fs::Red());
405 ASSERT_GL_NO_ERROR();
406
407 glUseProgram(program);
408 drawQuad(program, "position", 0.5f, 1.0f);
409 ASSERT_GL_NO_ERROR();
410
411 // expect the center pixel to be red
412 EXPECT_PIXEL_EQ(getWindowWidth() / 2, getWindowHeight() / 2, 255, 0, 0, 255);
413 }
414
415 // Test to cover a bug where the D3D11 rasterizer state would not be update when switching between
416 // draw types. This causes the cull face to potentially be incorrect when drawing emulated point
417 // spites.
TEST_P(PointSpritesTest,PointSpriteAlternatingDrawTypes)418 TEST_P(PointSpritesTest, PointSpriteAlternatingDrawTypes)
419 {
420 // TODO(anglebug.com/4349): Investigate possible ARM driver bug.
421 ANGLE_SKIP_TEST_IF(IsFuchsia() && IsARM() && IsVulkan());
422
423 GLfloat pointSizeRange[2] = {};
424 glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, pointSizeRange);
425 GLfloat maxPointSize = pointSizeRange[1];
426 ANGLE_SKIP_TEST_IF(maxPointSize < kMinMaxPointSize);
427
428 constexpr char kVS[] = R"(uniform float u_pointSize;
429 void main()
430 {
431 gl_PointSize = u_pointSize;
432 gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
433 })";
434
435 ANGLE_GL_PROGRAM(pointProgram, kVS, essl1_shaders::fs::Blue());
436
437 ANGLE_GL_PROGRAM(quadProgram, essl1_shaders::vs::Simple(), essl1_shaders::fs::Red());
438 ASSERT_GL_NO_ERROR();
439
440 glEnable(GL_CULL_FACE);
441 glCullFace(GL_FRONT);
442
443 const GLfloat quadVertices[] = {
444 -1.0f, 1.0f, 0.5f, 1.0f, -1.0f, 0.5f, -1.0f, -1.0f, 0.5f,
445
446 -1.0f, 1.0f, 0.5f, 1.0f, 1.0f, 0.5f, 1.0f, -1.0f, 0.5f,
447 };
448
449 glUseProgram(quadProgram);
450 GLint positionLocation = glGetAttribLocation(quadProgram, essl1_shaders::PositionAttrib());
451 glVertexAttribPointer(positionLocation, 3, GL_FLOAT, GL_FALSE, 0, quadVertices);
452 glEnableVertexAttribArray(positionLocation);
453 glDrawArrays(GL_TRIANGLES, 0, 6);
454
455 glUseProgram(pointProgram);
456 GLint pointSizeLoc = glGetUniformLocation(pointProgram, "u_pointSize");
457 ASSERT_GL_NO_ERROR();
458 GLfloat pointSize = std::min<GLfloat>(16.0f, maxPointSize);
459 glUniform1f(pointSizeLoc, pointSize);
460 ASSERT_GL_NO_ERROR();
461
462 glDrawArrays(GL_POINTS, 0, 1);
463 ASSERT_GL_NO_ERROR();
464
465 // expect the center pixel to be blue
466 EXPECT_PIXEL_COLOR_EQ(getWindowWidth() / 2, getWindowHeight() / 2, GLColor::blue);
467 }
468
469 // This checks for an NVIDIA driver bug where points larger than the maximum reported point size can
470 // be drawn. Point size should be clamped to the point size range as specified in GLES 3.0.5 section
471 // 3.4.
TEST_P(PointSpritesTest,PointSizeAboveMaxIsClamped)472 TEST_P(PointSpritesTest, PointSizeAboveMaxIsClamped)
473 {
474 // Failed on NVIDIA GeForce GTX 1080 - no pixels from the point were detected in the
475 // framebuffer. http://anglebug.com/2111
476 ANGLE_SKIP_TEST_IF(IsD3D9());
477
478 // Failed on AMD OSX and Windows trybots - no pixels from the point were detected in the
479 // framebuffer. http://anglebug.com/2113
480 ANGLE_SKIP_TEST_IF(IsAMD() && IsOpenGL());
481
482 // If the center of the point ends up being outside the renderable surface, no point gets
483 // rendered at all on AMD. http://anglebug.com/2113
484 ANGLE_SKIP_TEST_IF(IsAMD() && IsVulkan());
485
486 // TODO(hqle): Metal on macbook also has problem with drawing point outside framebuffer.
487 // http://anglebug.com/4135
488 ANGLE_SKIP_TEST_IF(IsMetal());
489
490 GLfloat pointSizeRange[2] = {};
491 glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, pointSizeRange);
492 GLfloat maxPointSize = pointSizeRange[1];
493
494 if (maxPointSize < 4)
495 {
496 // This test is only able to test larger points.
497 return;
498 }
499
500 constexpr char kVS[] =
501 "attribute vec4 vPosition;\n"
502 "uniform float uPointSize;\n"
503 "void main()\n"
504 "{\n"
505 " gl_PointSize = uPointSize;\n"
506 " gl_Position = vPosition;\n"
507 "}\n";
508 ANGLE_GL_PROGRAM(program, kVS, essl1_shaders::fs::Red());
509 glUseProgram(program);
510 ASSERT_GL_NO_ERROR();
511
512 GLfloat testPointSize = floorf(maxPointSize * 2.0f);
513
514 GLint pointSizeLoc = glGetUniformLocation(program, "uPointSize");
515 glUniform1f(pointSizeLoc, testPointSize);
516 ASSERT_GL_NO_ERROR();
517
518 // The point will be a square centered at gl_Position. We'll offset it from the center of the
519 // viewport on the x axis so that the left edge of the point square is at the center of the
520 // viewport.
521 GLfloat pointXPosition = (0.5f * maxPointSize) * (2.0f / (GLfloat)getWindowWidth());
522
523 GLBuffer vertexBuffer;
524 glBindBuffer(GL_ARRAY_BUFFER, vertexBuffer.get());
525 GLfloat thePoints[] = {pointXPosition, 0.0f};
526 glBufferData(GL_ARRAY_BUFFER, sizeof(thePoints), thePoints, GL_STATIC_DRAW);
527 ASSERT_GL_NO_ERROR();
528
529 glEnableVertexAttribArray(0);
530 glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, 0, 0);
531
532 glClearColor(0, 0, 0, 0);
533 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
534
535 glDrawArrays(GL_POINTS, 0, 1);
536 ASSERT_GL_NO_ERROR();
537
538 // Pixel on the right of the viewport center should be covered by the point.
539 EXPECT_PIXEL_NEAR(getWindowWidth() / 2 + 2, getWindowHeight() / 2, 255, 0, 0, 255, 4);
540
541 // Pixel on the left of the viewport center should not be covered by the point.
542 EXPECT_PIXEL_NEAR(getWindowWidth() / 2 - 2, getWindowHeight() / 2, 0, 0, 0, 0, 4);
543 }
544
545 // Use this to select which configurations (e.g. which renderer, which GLES
546 // major version) these tests should be run against.
547 //
548 // We test on D3D11 9_3 because the existing D3D11 PointSprite implementation
549 // uses Geometry Shaders which are not supported for 9_3.
550 // D3D9 and D3D11 are also tested to ensure no regressions.
551 ANGLE_INSTANTIATE_TEST_ES2(PointSpritesTest);
552