commit | 975a59ebca3ae91c767876765fac6ccc036e4370 | [log] [tgz] |
---|---|---|
author | Alexander Galazin <alexander.galazin@arm.com> | Wed Jan 11 08:50:13 2017 +0100 |
committer | Pyry Haulos <phaulos@google.com> | Wed Jan 18 19:29:53 2017 +0000 |
tree | 6a603a27501411bf0daaf2aa5d6f1cbeb7cbc249 | |
parent | 302bd7c6b3d468e33b19b693a25d67f2b54b961c [diff] |
Generate flat triangles in polygon offset tests. The tests setup triangles with a depth slope and then call glPolygonOffset(factor, units) with variable units and always 0 slope scaled factor. According to the GLES 3.2 spec 13.7.2 Depth Offset: "void PolygonOffset( float factor, float units ); factor scales the maximum depth slope of the polygon, and units scales an implementation-dependent constant that relates to the usable resolution of the depth buffer." If the polygon has a depth slope, the depth slope factor has to be not equal to zero. The rationale of the slope scaled factor is to ensure that the offset (equation 13.11) is greater than max(dz/dx, dz/dy) for all resolutions, which may not be the case for the constant offset since it doesn't take the screen resolution into account. Changed tests: dEQP-GLES2.functional.polygon_offset.*_displacement_with_units dEQP-GLES3.functional.polygon_offset.*_displacement_with_units Bug: 34386628 Change-Id: Ie8009ba1766eb50c3c5a750122aa8bb231144210
This repository contains a GPU testing suite called dEQP (drawElements Quality Program). dEQP contains tests for several graphics APIs, including OpenGL ES, EGL, and Vulkan.
Up-to-date documentation for the dEQP is available at Android Open Source Project site.
This repository includes Khronos Vulkan CTS under external/vulkancts
directory. For more information see Vulkan CTS README.