Summary: | The Chronicles of Riddick: Assault on Dark Athena fails to start with nouveau | ||
---|---|---|---|
Product: | Mesa | Reporter: | Béla Gyebrószki <gyebro69> |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED NOTOURBUG | QA Contact: | mesa-dev |
Severity: | normal | ||
Priority: | medium | CC: | gyebro69, imirkin, vovik-wfa |
Version: | git | Keywords: | patch |
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
trace file (unpatched mesa, game fails to start)
proper patch |
Description
Béla Gyebrószki
2015-07-01 03:39:50 UTC
One thing to note is that the shaders don't *actually* use the functionality. They all have the same copy & pasted adapter which makes glsl look more like hlsl, and it includes some functions which call the various texture functions. However they don't actually get used, at least in the few shaders I've looked at. It may be sufficient to provide the prototypes but then fail at link-time. This should allow the glsl compiler to optimize those functions out and thus work. But I haven't checked -- perhaps there are in fact vertex shaders that try to call texture2D(bias) or textureLod() from fp. Created attachment 118090 [details] [review] proper patch Can you see if this helps? I wasn't sure what the binary name was so couldn't add it to drirc. However you should be able to enable the relevant settings by setting alias_ati_to_arb_shader_texture_lod=true allow_vertex_texture_bias=true in your environment. If this helps, composing a drirc entry is pretty easy, assuming you have the binary name. You can use existing drirc entries for inspiration (see /etc/drirc). (In reply to Ilia Mirkin from comment #2) > Created attachment 118090 [details] [review] [review] > proper patch > > Can you see if this helps? I wasn't sure what the binary name was so > couldn't add it to drirc. However you should be able to enable the relevant > settings by setting > > alias_ati_to_arb_shader_texture_lod=true allow_vertex_texture_bias=true > > in your environment. If this helps, composing a drirc entry is pretty easy, > assuming you have the binary name. You can use existing drirc entries for > inspiration (see /etc/drirc). With the attached patch and those environment settings enabled I can start the game. (In reply to Béla Gyebrószki from comment #3) > (In reply to Ilia Mirkin from comment #2) > > Created attachment 118090 [details] [review] [review] [review] > > proper patch > > > > Can you see if this helps? I wasn't sure what the binary name was so > > couldn't add it to drirc. However you should be able to enable the relevant > > settings by setting > > > > alias_ati_to_arb_shader_texture_lod=true allow_vertex_texture_bias=true > > > > in your environment. If this helps, composing a drirc entry is pretty easy, > > assuming you have the binary name. You can use existing drirc entries for > > inspiration (see /etc/drirc). > > With the attached patch and those environment settings enabled I can start > the game. What is the name of the binary (so that I can write a proper drirc entry)? (In reply to Ilia Mirkin from comment #4) > (In reply to Béla Gyebrószki from comment #3) > > (In reply to Ilia Mirkin from comment #2) > > > Created attachment 118090 [details] [review] [review] [review] [review] > > > proper patch > > > > > > Can you see if this helps? I wasn't sure what the binary name was so > > > couldn't add it to drirc. However you should be able to enable the relevant > > > settings by setting > > > > > > alias_ati_to_arb_shader_texture_lod=true allow_vertex_texture_bias=true > > > > > > in your environment. If this helps, composing a drirc entry is pretty easy, > > > assuming you have the binary name. You can use existing drirc entries for > > > inspiration (see /etc/drirc). > > > > With the attached patch and those environment settings enabled I can start > > the game. > > What is the name of the binary (so that I can write a proper drirc entry)? The game executable is DarkAthena.exe I tried adding these lines to my ~/.drirc, but apparently the setting was ignored. <application name="Chronicles of Riddick" executable="DarkAthena.exe"> <option name="alias_ati_to_arb_shader_texture_lod" value="true" /> <option name="allow_vertex_texture_bias" value="true" /> </application> It also crashes on Intel graphics with the latest mesa from git. The patch fixes this problem though. I can confirm this happens on Intel with mesa 12.0.2. Is this patch going to be merged? (In reply to Vladimir from comment #7) > I can confirm this happens on Intel with mesa 12.0.2. Is this patch going to > be merged? The situation was a bit unclear to me. Without re-reading everything, my recollection is that (a) For some reason drirc matching doesn't work. (b) The game(s?) in question is no longer available. If either of those aren't true, let me know, and I'll re-re-re-polish the patch and send it out. Even the "proper" patch as attached here is kinda crap. And I rewrote all the ext matching stuff in the meanwhile. The game is no longer available for Linux. Closing for now. |
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.