<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Implement a NIR -> vec4 pass"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89580#c11">Comment # 11</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Implement a NIR -> vec4 pass"
href="https://bugs.freedesktop.org/show_bug.cgi?id=89580">bug 89580</a>
from <span class="vcard"><a class="email" href="mailto:elima@igalia.com" title="Eduardo Lima Mitev <elima@igalia.com>"> <span class="fn">Eduardo Lima Mitev</span></a>
</span></b>
<pre>This is odd. In some piglit tests (like "bin/glean -o -v -v -v -t +api2"), I'm
getting a nir_shader with no uniforms declared, yet it loads and uses some:
NIR (final form) for vertex shader:
decl_var shader_in vec4 in_0 (0, 0)
decl_var shader_out vec4 out_0 (0, 0)
decl_overload main returning void
impl main {
decl_reg vec4 r2
decl_reg vec4 r3
decl_reg vec1 r4
decl_reg vec4 r5
decl_reg vec1 r6
decl_reg vec4 r7
decl_reg vec1 r8
decl_reg vec4 r9
decl_reg vec1 r10
decl_reg vec4 r11
block block_0:
/* preds: */
r2 = intrinsic load_input () () (0, 1)
r3 = intrinsic load_uniform () () (0, 1)
r4 = fdot4 r2, r3
r5 = intrinsic load_uniform () () (4, 1)
r6 = fdot4 r2, r5
r7 = intrinsic load_uniform () () (8, 1)
r8 = fdot4 r2, r7
r9 = intrinsic load_uniform () () (12, 1)
r10 = fdot4 r2, r9
r11 = vec4 r4, r6, r8, r10
intrinsic store_output (r11) () (0, 1)
/* succs: block_1 */
block block_1:
}
This looks like a bug to me. Am I missing something?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>