On 9 November 2012 11:15, Chad Versace <span dir="ltr"><<a href="mailto:chad.versace@linux.intel.com" target="_blank">chad.versace@linux.intel.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Paul,<br>
<br>
I observed these Python errors during test generation. I haven't had a chance to look into them yet, but just wanted to inform you before I forgot about them.<br>
<br>
[87/1749] Generating builtin_uniform_tests.list<br>
/home/chad/proj/linux/graphics/v/master/src/piglit/generated_tests/builtin_function.py:1146: RuntimeWarning: overflow encountered in uint_scalars<br>
f('op-sub', 2, 110, lambda x, y: x - y, match_simple_binop, [floats+vecs+mats+ints+ivecs+uints+uvecs, floats+vecs+mats+ints+ivecs+uints+uvecs], template = '({0} - {1})')<br>
[127/1749] Generating constant_array_size_tests.list<br>
/home/chad/proj/linux/graphics/v/master/src/piglit/generated_tests/builtin_function.py:1146: RuntimeWarning: overflow encountered in uint_scalars<br>
f('op-sub', 2, 110, lambda x, y: x - y, match_simple_binop, [floats+vecs+mats+ints+ivecs+uints+uvecs, floats+vecs+mats+ints+ivecs+uints+uvecs], template = '({0} - {1})')<br>
</blockquote></div><br>These are normal and nothing to be concerned about. They happen because we're trying to test proper overflow behaviour of 32-bit uints in GLSL. In order to generate the test vectors we have to overflow those values in Python, and Python warns when you do that.<br>
<br>If it's bugging you, we could probably rewrite the python code so that it does those computations without overflow (e.g. if y > x, instead of computing x - y, compute 2^32 + x - y).<br></div>