1e5c31af7Sopenharmony_ci------------------------------------------------------------------------- 2e5c31af7Sopenharmony_cidrawElements Quality Program Test Specification 3e5c31af7Sopenharmony_ci----------------------------------------------- 4e5c31af7Sopenharmony_ci 5e5c31af7Sopenharmony_ciCopyright 2014 The Android Open Source Project 6e5c31af7Sopenharmony_ci 7e5c31af7Sopenharmony_ciLicensed under the Apache License, Version 2.0 (the "License"); 8e5c31af7Sopenharmony_ciyou may not use this file except in compliance with the License. 9e5c31af7Sopenharmony_ciYou may obtain a copy of the License at 10e5c31af7Sopenharmony_ci 11e5c31af7Sopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 12e5c31af7Sopenharmony_ci 13e5c31af7Sopenharmony_ciUnless required by applicable law or agreed to in writing, software 14e5c31af7Sopenharmony_cidistributed under the License is distributed on an "AS IS" BASIS, 15e5c31af7Sopenharmony_ciWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16e5c31af7Sopenharmony_ciSee the License for the specific language governing permissions and 17e5c31af7Sopenharmony_cilimitations under the License. 18e5c31af7Sopenharmony_ci------------------------------------------------------------------------- 19e5c31af7Sopenharmony_ci Rasterization Tests 20e5c31af7Sopenharmony_ci 21e5c31af7Sopenharmony_ciTests: 22e5c31af7Sopenharmony_ci + dEQP-GLES2.functional.rasterization.* 23e5c31af7Sopenharmony_ci 24e5c31af7Sopenharmony_ciIncludes: 25e5c31af7Sopenharmony_ci + Primitive rasterization 26e5c31af7Sopenharmony_ci - Points 27e5c31af7Sopenharmony_ci - Lines 28e5c31af7Sopenharmony_ci - Triangles 29e5c31af7Sopenharmony_ci + Individual triangles, triangle strips and triangle fans 30e5c31af7Sopenharmony_ci + Varying interpolation in all primitives 31e5c31af7Sopenharmony_ci + Projected (w != 1) and non-projected (w == 1) coordinates 32e5c31af7Sopenharmony_ci + Fill rule verification 33e5c31af7Sopenharmony_ci + Culling 34e5c31af7Sopenharmony_ci + Multisample rasterization 35e5c31af7Sopenharmony_ci 36e5c31af7Sopenharmony_ciDescription: 37e5c31af7Sopenharmony_ci 38e5c31af7Sopenharmony_ciThis test set compares images rendered by a reference software 39e5c31af7Sopenharmony_cirasterizer to images rendered by the target. Rasterized points, lines 40e5c31af7Sopenharmony_ciand triangles are compared to reference, and a deviation of 1 pixel in 41e5c31af7Sopenharmony_ciposition is allowed. 42e5c31af7Sopenharmony_ci 43e5c31af7Sopenharmony_ciFill rules are tested using additive blend so that pixels on shared 44e5c31af7Sopenharmony_citriangle edges are filled exactly once. Because exact fill rules are 45e5c31af7Sopenharmony_cinot specified, reference rasterizer uses all valid combinations of 46e5c31af7Sopenharmony_ciLEFT, RIGHT, TOP and BOTTOM. 47e5c31af7Sopenharmony_ci 48e5c31af7Sopenharmony_ciValue interpolation is tested for lines and triangles with 49e5c31af7Sopenharmony_civertex-specific colors, small deviation in interpolated color is allowed. 50e5c31af7Sopenharmony_ci 51e5c31af7Sopenharmony_ciMultisample rasterization is tested with points, lines and triangles. 52e5c31af7Sopenharmony_ciBecause sampling pattern is unknown, deviation in produced colors is 53e5c31af7Sopenharmony_ciallowed. 54