mesa/src
Eric Anholt c20f973c4f i965/gen4-5: Stop using bogus polygon_offset_scale field.
The polygon offset math used for triangles by the WM is "OffsetUnits * 2 *
MRD + OffsetFactor * m" where 'MRD' is the minimum resolvable difference
for the depth buffer (~1/(1<<16) or ~1/(1<<24)), 'm' is the approximated
slope from the GL spec, and '2' is this magic number from the original
i965 code dump that we deviate from the GL spec by because "it makes glean
work" (except that it doesn't, because of some hilarity with 0.5 *
approximately 2.0 != 1.0.  go glean!).

This clipper code for unfilled polygons, on the other hand, was doing
"OffsetUnits * garbage + OffsetFactor * m", where garbage was MRD in the
case of 16-bit depth visual (regardless the FBO's depth resolution), or
128 * MRD for 24-bit depth visual.

This change just makes the unfilled polygons behavior match the WM's
filled polygons behavior.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-26 01:07:11 -07:00
..
egl wayland: Handle global_remove event as well 2013-06-18 17:45:19 -04:00
gallium svga: allow 3D transfers in svga_texture_transfer_map() 2013-06-25 17:54:24 -06:00
gbm
getopt
glsl mesa: Move the common _mesa_glsl_compile_shader() code to glsl/. 2013-06-21 10:04:30 -07:00
glx mesa: remove outdated version lines in comments 2013-06-05 08:54:27 -06:00
gtest
mapi mesa: remove outdated version lines in comments 2013-06-05 08:54:27 -06:00
mesa i965/gen4-5: Stop using bogus polygon_offset_scale field. 2013-06-26 01:07:11 -07:00
Makefile.am
SConscript