On 16 September 2011 09:01, Marek Olšák <span dir="ltr">&lt;<a href="mailto:maraeo@gmail.com">maraeo@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Paul,<br>
<br>
this commit breaks the piglit test<br>
shaders/glsl-arb-fragment-coord-conventions on softpipe and r600g:<br>
<br>
bin/glsl-arb-fragment-coord-conventions -auto<br>
Regular gl_FragCoord<br>
Pixel center half integer<br>
Pixel center integer<br>
Probe at (0,0)<br>
  Expected: 0.250000 0.250000 0.000000<br>
  Observed: 0.749020 0.749020 0.000000<br>
Probe at (99,99)<br>
  Expected: 0.250000 0.250000 0.000000<br>
  Observed: 0.749020 0.749020 0.000000<br>
Pixel origin upper left<br>
Probe at (0,0)<br>
  Expected: 0.000000 1.000000 0.000000<br>
  Observed: 0.003922 0.003922 0.000000<br>
Probe at (99,99)<br>
  Expected: 1.000000 0.000000 0.000000<br>
  Observed: 0.996078 0.996078 0.000000<br>
Pixel origin upper left and pixel center integer<br>
PIGLIT: {&#39;result&#39;: &#39;fail&#39; }<br>
<br>
Reverting the commit fixes this. It looks like<br>
layout(pixel_center_integer) is ignored, because &quot;Pixel center half<br>
integer&quot; and &quot;Pixel center integer&quot; return the same color in the test.<br>
<br>
Do you have any idea what&#39;s wrong?<br>
<br>
Marek<br>
<div><div></div><br></div></blockquote><div><br>Wow, that&#39;s surprising, since the commit should only affect what is considered an error condition; it shouldn&#39;t affect the GLSL IR that gets generated.<br><br>I&#39;ll do some investigation and let you know what I find.<br>
<br>Paul <br></div></div>