<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:jfonseca@vmware.com" title="José Fonseca <jfonseca@vmware.com>"> <span class="fn">José Fonseca</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - [llvmpipe] piglit gl-1.4-polygon-offset regression"
href="https://bugs.freedesktop.org/show_bug.cgi?id=71199">bug 71199</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Summary</td>
<td>[llvmpipe] piglit glean polygonOffset regression
</td>
<td>[llvmpipe] piglit gl-1.4-polygon-offset regression
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [llvmpipe] piglit gl-1.4-polygon-offset regression"
href="https://bugs.freedesktop.org/show_bug.cgi?id=71199#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [llvmpipe] piglit gl-1.4-polygon-offset regression"
href="https://bugs.freedesktop.org/show_bug.cgi?id=71199">bug 71199</a>
from <span class="vcard"><a class="email" href="mailto:jfonseca@vmware.com" title="José Fonseca <jfonseca@vmware.com>"> <span class="fn">José Fonseca</span></a>
</span></b>
<pre>This test was renamed, but the issue is still there:
$ ./bin/gl-1.4-polygon-offset -auto
Actual MRD is too small (may cause incorrect results)
Ideal MRD at near plane is 1.192095e-07 (nominally 2 bits)
Actual MRD at near plane is 5.960464e-08 (nominally 1 bit)
Ideal MRD at infinity is 3.061179e-08 (nominally 1 bit)
Actual MRD at infinity is 5.960464e-08 (nominally 1 bit)
PIGLIT: {"result": "fail" }
(In reply to Roland Scheidegger from <a href="show_bug.cgi?id=71199#c1">comment #1</a>)
<span class="quote">> My guess would be the test is invalid.
> The "mrd" meaning is very precise both in d3d10 and OpenGl, and we were
> being sloppy there before - it really should be exactly one bit (for unorm
> depth formats).
> I quickly looked at the test and I don't quite understand what it does to
> find the ideal mrd. I suspect the math doesn't work out somewhere because
> the float math is right at the limits of depth buffer precision (24 bit in
> this case).</span >
Yes, I also don't understand why the requirement of 2 bits.
<span class="quote">> Do closed source drivers actually pass this (and if so I wonder what their
> calculated ideal/actual mrd values are)?</span >
Yes, they do somehow:
$ glxinfo | grep '^OpenGL \(vendor\|renderer\) string:'
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro K1000M/PCIe/SSE2
$ ./bin/gl-1.4-polygon-offset -auto
Ideal MRD at near plane is 1.192089e-07 (nominally 2 bits)
Actual MRD at near plane is 1.192093e-07 (nominally 2 bits)
Ideal MRD at infinity is 1.499423e-08 (nominally 0 bits)
Actual MRD at infinity is 1.192093e-07 (nominally 2 bits)
PIGLIT: {"result": "pass" }</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>