Bug 92999 - [APITRACE] Shadow of Mordor missing fonts in menu
Summary: [APITRACE] Shadow of Mordor missing fonts in menu
Status: RESOLVED NOTABUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: 11.0
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 77449
  Show dependency treegraph
 
Reported: 2015-11-18 20:34 UTC by Christoph Brill
Modified: 2019-07-04 01:27 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Simple test program showing a shader compilation error (2.13 KB, text/plain)
2015-11-18 21:45 UTC, Christoph Brill
Details

Description Christoph Brill 2015-11-18 20:34:44 UTC
Shadows of Mordor is missing several fonts in the menu. An APITRACE can be found at: https://drive.google.com/file/d/0BxAIK4wsKm_YS1dWT0FGd2hVX00/view?usp=sharing
Comment 1 Christoph Brill 2015-11-18 21:45:25 UTC
Created attachment 119919 [details]
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"
Comment 2 Ilia Mirkin 2015-11-18 21:47:17 UTC
(In reply to Christoph Brill from comment #1)
> Created attachment 119919 [details]
> 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"

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).
Comment 3 Timothy Arceri 2019-07-04 01:27:57 UTC
Not a mesa bug closing.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.