<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - gen_shader_precision_tests.py build error with older version of NumPY"
href="https://bugs.freedesktop.org/show_bug.cgi?id=88595">88595</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>gen_shader_precision_tests.py build error with older version of NumPY
</td>
</tr>
<tr>
<th>Product</th>
<td>piglit
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Keywords</th>
<td>bisected, regression
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>tests
</td>
</tr>
<tr>
<th>Assignee</th>
<td>piglit@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vlee@freedesktop.org
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>piglit@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>baker.dylan.c@gmail.com, chrisf@ijw.co.nz
</td>
</tr></table>
<p>
<div>
<pre>piglit: c0c386a584ceec3ca8f3629e5b478a0ec3aea71d (master)
commit 7bc55808ee944457227b7230182d51d82b9909fc introduced a build error with
older versions of NumPy.
commit 7bc55808ee944457227b7230182d51d82b9909fc
Author: Micah Fedke <<a href="mailto:micah.fedke@collabora.co.uk">micah.fedke@collabora.co.uk</a>>
Date: Wed Nov 19 17:22:00 2014 -0600
arb_shader_precision: add tests for floating point precision
Note: A bunch of these currently don't pass on i965.
Reviewed-by: Dylan Baker <<a href="mailto:dylanx.c.baker@intel.com">dylanx.c.baker@intel.com</a>>
Reviewed-by: Chris Forbes <<a href="mailto:chrisf@ijw.co.nz">chrisf@ijw.co.nz</a>>
Traceback (most recent call last):
File "generated_tests/gen_shader_precision_tests.py", line 159, in <module>
main()
File "generated_tests/gen_shader_precision_tests.py", line 156, in main
column_major_values=column_major_values ))
File "site-packages/mako/template.py", line 452, in render_unicode
as_unicode=True)
File "site-packages/mako/runtime.py", line 803, in _render
**_kwargs_for_callable(callable_, data))
File "site-packages/mako/runtime.py", line 835, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "site-packages/mako/runtime.py", line 860, in _exec_template
callable_(context, *args, **kwargs)
File
"generators/templates/gen_shader_precision_testsgenerated_tests/templates/gen_shader_precision_tests/vs.mako.py",
line 113, in render_body
__M_writer(unicode(shader_runner_format(
column_major_values(test_vector.arguments[i]))))
File "generated_tests/gen_shader_precision_tests.py", line 114, in
shader_runner_format
retval+=' {0}'.format('{0:1.8e}'.format(x))
ValueError: Unknown format code 'e' for object of type 'str'
<span class="quote">>>> import numpy
>>> numpy.__version__</span >
'1.4.1'
<span class="quote">>>> x = numpy.float32(-1.5)
>>> ' {0}'.format('{0:1.8e}'.format(x))</span >
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: Unknown format code 'e' for object of type 'str'
This is probably NumPy <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - [Intel/i830] VBERestore broken in kernel i915 with 6.8.1 830 driver"
href="show_bug.cgi?id=1675">bug #1675</a>, which was fixed in NumPy 1.6.2. Upgrading
NumPY fixed the build error.
<span class="quote">>>> import numpy
>>> numpy.__version__</span >
'1.9.1'
<span class="quote">>>> x = numpy.float32(-1.5)
>>> ' {0}'.format('{0:1.8e}'.format(x))</span >
' -1.50000000e+00'</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>