<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Failed to build shader (translation from TGSI)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99349#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Failed to build shader (translation from TGSI)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=99349">bug 99349</a>
from <span class="vcard"><a class="email" href="mailto:gw.fossdev@gmail.com" title="Gert Wollny <gw.fossdev@gmail.com>"> <span class="fn">Gert Wollny</span></a>
</span></b>
<pre>I've had the same error output when I was playing with the Unreal Editor with
an HD6850 (BARTS) using the latest mesa-git.
In order to track it down I added some debugging to mesa and could get the
following trace that leads to the error:
r600/r600_asm.c:615
check_and_set_bank_swizzle - Couldn't find a working swizzle
drivers/r600/r600_shader.c:3975
tgsi_op2_s - Error in tgsi_op2_s, i = 3, r600_bytecode_add_alu returned -1
r600/r600_shader.c:3332
r600_shader_from_tgsi - Failed to build shader at ctx.inst_info->process,
chip class: 6, opcode: 7 result: -1
Since I added output for every "return -1" in r600/r600_asm.c I also get a lots
of other messages, but I guess that these are normal.
Debugging the code I also found that check_and_set_bank_swizzle exiting with
"Couldn't find a working swizzle" is not necessarily an error, which means that
I'm now a bit lost, because I'm not sure about how continue debugging this
problem.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>