<div class="gmail_extra">Passes on OSX Lion / 10.7.3 / Intel Inc. -- Intel HD Graphics 3000 OpenGL Engine -- 2.1 APPLE-7.18.11<br><br><div class="gmail_quote">On 24 April 2012 03:56, Benoit Jacob <span dir="ltr"><<a href="mailto:bjacob@mozilla.com" target="_blank">bjacob@mozilla.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif">On Ubuntu 11.10 64bit, Gallium 0.4 on AMD RV710 / 2.1 Mesa 7.11, I get these results for all types:<br>
<br><span>testing: float<br></span><div><a href="https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/uniforms/show-shader-source" target="_blank">vertex shader</a></div><div><a href="https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/uniforms/show-shader-source" target="_blank">fragment shader</a></div>
<span>default value should be zero<br></span><span><span><span>PASS</span> should be green</span><br></span><span>test test by setting value<br></span><span><span><span>FAIL</span> should be red</span><br></span><span>at (0, 0) expected: 255,0,0,255 was 0,255,0,255<br>
</span><span>re-linking should reset to defaults<br></span><span><span><span>PASS</span> should be green</span><br></span><span><span><span>PASS</span> getError was expected value: NO_ERROR : should be no GL errors</span><br>
</span><div><a href="https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/uniforms/show-shader-source" target="_blank">vertex shader</a></div><div><a href="https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/uniforms/show-shader-source" target="_blank">fragment shader</a></div>
<span>default value should be zero<br></span><span><span><span>PASS</span> should be green</span><br></span><span>test test by setting value<br></span><span><span><span>FAIL</span> should be red</span><br></span><span>at (0, 0) expected: 255,0,0,255 was 0,255,0,255<br>
</span><span>re-linking should reset to defaults<br></span><span><span><span>PASS</span> should be green</span><br></span><span><span><span>PASS</span> getError was expected value: NO_ERROR : should be no GL errors</span><br>
</span><div><a href="https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/uniforms/show-shader-source" target="_blank">vertex shader</a></div><div><a href="https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/uniforms/show-shader-source" target="_blank">fragment shader</a></div>
<span>default value should be zero<br></span><span><span><span>PASS</span> should be green</span><br></span><span>test test by setting value<br></span><span><span><span>PASS</span> should be red</span><br></span><span>re-linking should reset to defaults<br>
</span><span><span><span>PASS</span> should be green</span><br></span><span><span><span>PASS</span> getError was expected value: NO_ERROR : should be no GL errors</span><br></span><div><a href="https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/uniforms/show-shader-source" target="_blank">vertex shader</a></div>
<div><a href="https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/uniforms/show-shader-source" target="_blank">fragment shader</a></div><span>default value should be zero<br></span><span><span><span>PASS</span> should be green</span><br>
</span><span>test test by setting value<br></span><span><span><span>PASS</span> should be red</span><br></span><span>re-linking should reset to defaults<br></span><span><span><span>PASS</span> should be green</span><br></span><span><span><span>PASS</span> getError was expected value: NO_ERROR : should be no GL errors</span></span><br>
<br><hr><div><div class="h5"><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid rgb(16,16,255)">
I added a new test to check that uniforms get the correct default values. Rumor is that some drivers have bugs here. Before browsers try to work around this issue it would be nice to have a test case<div><br></div><div>Can you please run the test and if it fails then post your OS, GPU an Driver info? If you're using Chrome you can get that by going to about:gpu, in Firefox it's about:support</div>

<div><br></div><div>The test is here</div><div><a href="https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/uniforms/uniform-default-values.html" target="_blank">https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/conformance/uniforms/uniform-default-values.html</a></div>

<div><br></div><div>Thank you</div><div><br></div><div>-gregg</div>
</blockquote><br></div></div></div></div></blockquote></div><br></div>