History log of /external/deqp/modules/gles2/functional/es2fPolygonOffsetTests.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
975a59ebca3ae91c767876765fac6ccc036e4370 11-Jan-2017 Alexander Galazin <alexander.galazin@arm.com> 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
/external/deqp/modules/gles2/functional/es2fPolygonOffsetTests.cpp
3c827367444ee418f129b2c238299f49d3264554 02-Sep-2014 Jarkko Poyry <jpoyry@google.com> Import dEQP.

Import drawElements Quality Program from an internal repository.

Bug: 17388917
Change-Id: Ic109fe4a57e31b2a816113d90fbdf51a43e7abeb
/external/deqp/modules/gles2/functional/es2fPolygonOffsetTests.cpp