<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [APITRACE] Shadow of Mordor missing fonts in menu"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92999#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [APITRACE] Shadow of Mordor missing fonts in menu"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92999">bug 92999</a>
from <span class="vcard"><a class="email" href="mailto:imirkin@alum.mit.edu" title="Ilia Mirkin <imirkin@alum.mit.edu>"> <span class="fn">Ilia Mirkin</span></a>
</span></b>
<pre>(In reply to Christoph Brill from <a href="show_bug.cgi?id=92999#c1">comment #1</a>)
<span class="quote">> Created <span class=""><a href="attachment.cgi?id=119919" name="attach_119919" title="Simple test program showing a shader compilation error">attachment 119919</a> <a href="attachment.cgi?id=119919&action=edit" title="Simple test program showing a shader compilation error">[details]</a></span>
> Simple test program showing a shader compilation error
>
> The shaders generated seem to be a source of the trouble. The compiler
> dislikes the following part of the shader:
>
> int bits = ...;
> const uint mask = 0xFFFFFFFFu >> (32 - bits);
>
> It complains:
> "error: initializer of const variable `mask' must be a constant expression"
>
> Attached is a simple test program to check for this error. Compile and link
> using "g++ const_init.cpp -lGL -lSDL2 -lGLEW"</span >
You think that's bad? How about the 'offest' typo? :) You need to force GL4 in
order to do the trace. Might want to also have a copy of r600g that enables
ARB_gpu_shader5 (which will remove the need for those wrong overrides).</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>