Import dEQP.
[platform/upstream/VK-GL-CTS.git] / doc / testspecs / GLES2 / functional.rasterization.txt
1 -------------------------------------------------------------------------
2 drawElements Quality Program Test Specification
3 -----------------------------------------------
4
5 Copyright 2014 The Android Open Source Project
6
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11      http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 -------------------------------------------------------------------------
19     Rasterization Tests
20
21 Tests:
22  + dEQP-GLES2.functional.rasterization.*
23
24 Includes:
25  + Primitive rasterization
26    - Points
27    - Lines
28    - Triangles
29  + Individual triangles, triangle strips and triangle fans
30  + Varying interpolation in all primitives
31  + Projected (w != 1) and non-projected (w == 1) coordinates
32  + Fill rule verification
33  + Culling
34  + Multisample rasterization
35
36 Description:
37
38 This test set compares images rendered by a reference software
39 rasterizer to images rendered by the target. Rasterized points, lines
40 and triangles are compared to reference, and a deviation of 1 pixel in
41 position is allowed.
42
43 Fill rules are tested using additive blend so that pixels on shared
44 triangle edges are filled exactly once. Because exact fill rules are
45 not specified, reference rasterizer uses all valid combinations of
46 LEFT, RIGHT, TOP and BOTTOM.
47
48 Value interpolation is tested for lines and triangles with
49 vertex-specific colors, small deviation in interpolated color is allowed.
50
51 Multisample rasterization is tested with points, lines and triangles.
52 Because sampling pattern is unknown, deviation in produced colors is
53 allowed.