<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 - brw_nir_uniforms.cpp:256:10: error: non-constant-expression cannot be narrowed"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105088">105088</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>brw_nir_uniforms.cpp:256:10: error: non-constant-expression cannot be narrowed
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/DRI/i965
</td>
</tr>
<tr>
<th>Assignee</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vlee@freedesktop.org
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-3d-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Build error with clang 6.0.
CXX brw_nir_uniforms.lo
warning: unknown warning option '-Wno-override-init'; did you mean
'-Wno-override-module'? [-Wunknown-warning-option]
brw_nir_uniforms.cpp:256:10: error: non-constant-expression cannot be narrowed
from type 'gl_state_index_' to 'gl_state_index16' (aka 'short') in
initializer list [-Wc++11-narrowing]
nir->info.stage == MESA_SHADER_TESS_CTRL ?
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
brw_nir_uniforms.cpp:256:10: note: insert an explicit cast to silence this
issue
nir->info.stage == MESA_SHADER_TESS_CTRL ?
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
static_cast<gl_state_index16>(</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>