All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 95285] [radeonsi] Tomb Raider: enabling TressFX makes hair disappear
@ 2016-05-05 14:36 bugzilla-daemon
  2016-05-05 14:39 ` bugzilla-daemon
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bugzilla-daemon @ 2016-05-05 14:36 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1730 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=95285

            Bug ID: 95285
           Summary: [radeonsi] Tomb Raider: enabling TressFX makes hair
                    disappear
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/radeonsi
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: kai@dev.carbon-project.org
        QA Contact: dri-devel@lists.freedesktop.org

Created attachment 123497
  --> https://bugs.freedesktop.org/attachment.cgi?id=123497&action=edit
No hair with TressFX

When I enable TressFX in Tomb Raider with the stack detailed below, Lara's hair
disappears partially (the part rendered with TressFX). Going back to "normal"
settings makes the hair fully visible again. The attached screenshot shows how
it looks with TressFX enabled.

I thought it might help to set the GLSL and GL overrides to 430 and 4.3
respectively, but then the game launcher refuses to start with tons of
GL_INVALID_OPERATION errors (see <https://paste.debian.net/hidden/84a0115a/>).
Not sure if this is a bug in the launcher or Mesa, but since 4.3 support is
imminent I thought I mention it here as well.


The following stack (Debian testing as a base) was used:
GPU: Hawaii PRO [Radeon R9 290] (ChipID = 0x67b1)
Mesa: Git:master/76a36ac3ea
libdrm: 2.4.67-1
LLVM: SVN:trunk/r268388 (3.9 devel)
X.Org: 2:1.18.3-1
Linux: 4.5.1
Firmware: firmware-amd-graphics/20160110-1
libclc: Git:master/20d977a3e6
DDX: 1:7.7.0-1

Let me know, if you need something else.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 3228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 95285] [radeonsi] Tomb Raider: enabling TressFX makes hair disappear
  2016-05-05 14:36 [Bug 95285] [radeonsi] Tomb Raider: enabling TressFX makes hair disappear bugzilla-daemon
@ 2016-05-05 14:39 ` bugzilla-daemon
  2016-05-05 15:09 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2016-05-05 14:39 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 322 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=95285

--- Comment #1 from Kai <kai@dev.carbon-project.org> ---
Created attachment 123498
  --> https://bugs.freedesktop.org/attachment.cgi?id=123498&action=edit
Hair is visible without TressFX enabled

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1280 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 95285] [radeonsi] Tomb Raider: enabling TressFX makes hair disappear
  2016-05-05 14:36 [Bug 95285] [radeonsi] Tomb Raider: enabling TressFX makes hair disappear bugzilla-daemon
  2016-05-05 14:39 ` bugzilla-daemon
@ 2016-05-05 15:09 ` bugzilla-daemon
  2016-05-05 16:38 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2016-05-05 15:09 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 544 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=95285

--- Comment #2 from Ilia Mirkin <imirkin@alum.mit.edu> ---
Try some of Ken's patches at

https://cgit.freedesktop.org/~kwg/mesa/log/?h=tombraider-2

There are some issues which tressfx happens to hit. (And some other option
too...) However at least on nouveau, tressfx is still a fail even with those.
[Sorry, don't have the game myself, so don't have further details. Just an FYI
with the current state of affairs.]

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1406 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 95285] [radeonsi] Tomb Raider: enabling TressFX makes hair disappear
  2016-05-05 14:36 [Bug 95285] [radeonsi] Tomb Raider: enabling TressFX makes hair disappear bugzilla-daemon
  2016-05-05 14:39 ` bugzilla-daemon
  2016-05-05 15:09 ` bugzilla-daemon
@ 2016-05-05 16:38 ` bugzilla-daemon
  2016-05-05 17:07 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2016-05-05 16:38 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 281 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=95285

--- Comment #3 from Nicolai Hähnle <nhaehnle@gmail.com> ---
If the patches mentioned by Ilia don't help, an apitrace showing the problem
would be useful.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1071 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 95285] [radeonsi] Tomb Raider: enabling TressFX makes hair disappear
  2016-05-05 14:36 [Bug 95285] [radeonsi] Tomb Raider: enabling TressFX makes hair disappear bugzilla-daemon
                   ` (2 preceding siblings ...)
  2016-05-05 16:38 ` bugzilla-daemon
@ 2016-05-05 17:07 ` bugzilla-daemon
  2016-05-05 18:28 ` [Bug 95285] [radeonsi,apitrace] " bugzilla-daemon
  2016-05-05 18:58 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2016-05-05 17:07 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 2531 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=95285

Kai <kai@dev.carbon-project.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kenneth@whitecape.org

--- Comment #4 from Kai <kai@dev.carbon-project.org> ---
(In reply to Ilia Mirkin from comment #2)
> Try some of Ken's patches at
> 
> https://cgit.freedesktop.org/~kwg/mesa/log/?h=tombraider-2

Thanks for the pointer, Ilia! I've applied the following patches:
fb4f8f9 glsl: Make opt_constant_variable() bail in useless cases.
a6bebce glsl: Remove bonus tree walking in opt_constant_folding().
b01114f glsl: Consolidate duplicate copies of constant folding.
2040a80 glsl: Avoid excess tree walking when folding ir_dereference_arrays.
285e966 glsl: Don't do constant propagation in opt_constant_folding.
862fb32 glsl: Make lower_const_arrays_to_uniforms work directly on constants.
341ee51 glsl: Don't constant propagate arrays

Additionally, I think I should mention, that I've applied
<https://patchwork.freedesktop.org/patch/85101/> locally, since I'm using a
LLVM > 268259. Just in case that could have an impact.

Anyway, with those patches applied the game freezes the system (ie. the system
stops responding to any kind of input) while entering the main menu. The only
output I could capture was "[0505/185411:WARNING:x11_util.cc(1490)] X error
received: serial 1001, error_code 3 (BadWindow (invalid Window parameter)),
request_code 4, minor_code 0 (X_DestroyWindow)"
CCing Kenneth, maybe he has an idea which of his patches could cause this.

> There are some issues which tressfx happens to hit. (And some other option
> too...)

Do you mean bug 95190 or something else? I'm seeing bug 95190 as well.
Therefore I've kept post processing disabled so far.

> However at least on nouveau, tressfx is still a fail even with
> those. [Sorry, don't have the game myself, so don't have further details.
> Just an FYI with the current state of affairs.]

No need to apologize! Any piece of information is appreciated. As far as access
to TR goes: did you try contacting Feral? They were willing to give access to
XCOM 2 to some Mesa developers IIRC, maybe they're willing to do the same here?


(In reply to Nicolai Hähnle from comment #3)
> If the patches mentioned by Ilia don't help, an apitrace showing the problem
> would be useful.
Ok, I'll do that.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 4648 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 95285] [radeonsi,apitrace] Tomb Raider: enabling TressFX makes hair disappear
  2016-05-05 14:36 [Bug 95285] [radeonsi] Tomb Raider: enabling TressFX makes hair disappear bugzilla-daemon
                   ` (3 preceding siblings ...)
  2016-05-05 17:07 ` bugzilla-daemon
@ 2016-05-05 18:28 ` bugzilla-daemon
  2016-05-05 18:58 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2016-05-05 18:28 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1233 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=95285

Kai <kai@dev.carbon-project.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[radeonsi] Tomb Raider:     |[radeonsi,apitrace] Tomb
                   |enabling TressFX makes hair |Raider: enabling TressFX
                   |disappear                   |makes hair disappear

--- Comment #5 from Kai <kai@dev.carbon-project.org> ---
Apitrace is now available at
<http://dev.carbon-project.org/debian/mesa.bugs/95285/tombraider.trace.xz>.

Access to that file is password protected to prevent needless downloads, since
the trace is > 800 MB in this compressed form (1.9 GB uncompressed). Known Mesa
developers can drop me a message requesting access. If you had access to
another apitrace I produced, those credentials continue to work and will give
you access to this trace as well.

The trace includes me activating TressFX in the options and therefore you can
see the full settings I'm using for Tomb Raider. Just in case you spot
something in there, that you might think I should try.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2628 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug 95285] [radeonsi,apitrace] Tomb Raider: enabling TressFX makes hair disappear
  2016-05-05 14:36 [Bug 95285] [radeonsi] Tomb Raider: enabling TressFX makes hair disappear bugzilla-daemon
                   ` (4 preceding siblings ...)
  2016-05-05 18:28 ` [Bug 95285] [radeonsi,apitrace] " bugzilla-daemon
@ 2016-05-05 18:58 ` bugzilla-daemon
  5 siblings, 0 replies; 7+ messages in thread
From: bugzilla-daemon @ 2016-05-05 18:58 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1316 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=95285

Kai <kai@dev.carbon-project.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |NOTOURBUG
             Status|NEW                         |RESOLVED

--- Comment #6 from Kai <kai@dev.carbon-project.org> ---
Ok, I did one last test. I only set "MESA_GLSL_VERSION_OVERRIDE=430" (notice
the missing override for MESA_GL_VERSION_OVERRIDE in comparison to comment #0).
When launched this way, TressFX works (at least in the benchmark, I used to
check this and to produce the trace from comment #5)!

I'm closing this bug as NOTOURBUG as it seems the game is using functionality,
when the TressFX option is enabled, it should only use when GLSL 4.30 is
available. Or put differently: it shouldn't offer TressFX unless GLSL 4.30 is
available, ie. this is a game bug.

The launcher problem described in comment #0 seems to stem from the fact, that
MESA_GL_VERSION_OVERRIDE also overrides the compatibility profile version as
well and the launcher then uses that instead of a core profile. While forcing
GLSL to 4.30 only enables 4.3 in the core profile.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2977 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-05-05 18:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-05 14:36 [Bug 95285] [radeonsi] Tomb Raider: enabling TressFX makes hair disappear bugzilla-daemon
2016-05-05 14:39 ` bugzilla-daemon
2016-05-05 15:09 ` bugzilla-daemon
2016-05-05 16:38 ` bugzilla-daemon
2016-05-05 17:07 ` bugzilla-daemon
2016-05-05 18:28 ` [Bug 95285] [radeonsi,apitrace] " bugzilla-daemon
2016-05-05 18:58 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.