All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8
@ 2018-02-22 23:40 bugzilla-daemon
  2018-03-30 12:08 ` bugzilla-daemon
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-02-22 23:40 UTC (permalink / raw)
  To: dri-devel


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

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

            Bug ID: 105218
           Summary: Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: blocker
          Priority: medium
         Component: Drivers/Gallium/radeonsi
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: dark_sylinc@yahoo.com.ar
        QA Contact: dri-devel@lists.freedesktop.org

Our Terrain sample from Ogre 2.1 uses a compute shader to generate the shadows
of the terrain, and later uses a special vs & ps to render the terrain.

What's special about that sample over the rest (that run fine) are:

1. The compute shader that generates the shadows
(https://bitbucket.org/sinbad/ogre/src/09181053ca69f4760b655c2eed5b5ca7d62fd7bc/Samples/Media/2.0/scripts/materials/Tutorial_Terrain/GLSL/TerraShadowGenerator.glsl?at=v2-1&fileviewer=file-view-default).
The heigthmap is in format R16_UNORM, the generated shadows texture is in
RGB10A2
2. A PS that generates the normals
(https://bitbucket.org/sinbad/ogre/src/09181053ca69f4760b655c2eed5b5ca7d62fd7bc/Samples/Media/2.0/scripts/materials/Tutorial_Terrain/GLSL/GpuNormalMapper_ps.glsl?at=v2-1&fileviewer=file-view-default).
The normals' texture are in RGB10A2
3. The VS has no vertex buffer bound, but rather relies on gl_VertexID and
integer ops
(https://bitbucket.org/sinbad/ogre/src/09181053ca69f4760b655c2eed5b5ca7d62fd7bc/Samples/Media/Hlms/Terra/GLSL/VertexShader_vs.glsl?at=v2-1&fileviewer=file-view-default#VertexShader_vs.glsl-66)
and reads the heightmap.

After commit 847d0a393d7f0f967f39302900d5330f32b804c8 and at least until latest
from today, running this sample causes an entire system freeze: Mouse cursor is
the only thing that responds. Keyboard does not respond, hard resetting is the
only way and tends to corrupt files in the drive (This was painful to bisect).

Before this commit the sample behaves as expected.

My GPU is a Radeon RX 560 2GB

I can provide a binary with the failing sample, or instructions on how to build
from source (https://ogrecave.github.io/ogre/api/2.1/SettingUpOgreLinux.html).
Whatever you need.

I'm flagging this as blocker because of the security implications of freezing
the entire system with ease.

Cheers

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

[-- Attachment #1.2: Type: text/html, Size: 4616 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] 9+ messages in thread

* [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8
  2018-02-22 23:40 [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8 bugzilla-daemon
@ 2018-03-30 12:08 ` bugzilla-daemon
  2018-03-30 12:44 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-03-30 12:08 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #1 from Timothy Arceri <t_arceri@yahoo.com.au> ---
To complete the bug report can you report which LLVM are you testing with?

You can find it easily with:

glxinfo | grep OpenGL

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

[-- Attachment #1.2: Type: text/html, Size: 1125 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] 9+ messages in thread

* [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8
  2018-02-22 23:40 [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8 bugzilla-daemon
  2018-03-30 12:08 ` bugzilla-daemon
@ 2018-03-30 12:44 ` bugzilla-daemon
  2018-03-30 16:36 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-03-30 12:44 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #2 from Timothy Arceri <t_arceri@yahoo.com.au> ---
I built from source and for me the Terrain sample crashes with:

An exception has occured: OGRE EXCEPTION(5:ItemIdentityException): Compute Job
with name Terra/ShadowGenerator not found in HlmsCompute::findComputeJob at
/home/tarceri/merc/Ogre/OgreMain/src/OgreHlmsCompute.cpp (line 570)

Tested with Mesa/LLVM master.

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

[-- Attachment #1.2: Type: text/html, Size: 1318 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] 9+ messages in thread

* [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8
  2018-02-22 23:40 [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8 bugzilla-daemon
  2018-03-30 12:08 ` bugzilla-daemon
  2018-03-30 12:44 ` bugzilla-daemon
@ 2018-03-30 16:36 ` bugzilla-daemon
  2018-03-30 16:40 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-03-30 16:36 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #3 from Matias N. Goldberg <dark_sylinc@yahoo.com.ar> ---
Hi!

Thanks for starting to look into this!

First:
 glxinfo | grep OpenGL
OpenGL vendor string: X.Org
OpenGL renderer string: Radeon RX 560 Series (POLARIS11 / DRM 3.19.0 / 4.14.11,
LLVM 6.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.1.0-devel
(git-b3a1d9588e)
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 18.1.0-devel (git-b3a1d9588e)
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.1.0-devel
(git-b3a1d9588e)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

To be more specific, my LLVM is from SVN revision 321389

As for the Terra crash: It seems the build didn't pick rapidjson, so there's no
JSON material support.
Place rapidjson into <OgreRepo>/Dependencies/include/rapidjson folder (create
it if it doesn't exist) so that the header lies at
<OgreRepo>/Dependencies/include/rapidjson/rapidjson.h

To avoid any potential problem just grab rapidjson files from here:
https://bitbucket.org/cabalistic/ogredeps/src/d0f0609a769a5a4a5824256280e07b3a72637a63/src/rapidjson/include/?at=default

Then run CMake again on Ogre so that it picks up rapidjson and build again.

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

[-- Attachment #1.2: Type: text/html, Size: 2607 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] 9+ messages in thread

* [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8
  2018-02-22 23:40 [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8 bugzilla-daemon
                   ` (2 preceding siblings ...)
  2018-03-30 16:36 ` bugzilla-daemon
@ 2018-03-30 16:40 ` bugzilla-daemon
  2018-03-30 23:51 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-03-30 16:40 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #4 from Matias N. Goldberg <dark_sylinc@yahoo.com.ar> ---
This is an example of how JSON settings look in my CMake setup:

https://i.imgur.com/mj77iEz.png

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

[-- Attachment #1.2: Type: text/html, Size: 1152 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] 9+ messages in thread

* [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8
  2018-02-22 23:40 [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8 bugzilla-daemon
                   ` (3 preceding siblings ...)
  2018-03-30 16:40 ` bugzilla-daemon
@ 2018-03-30 23:51 ` bugzilla-daemon
  2018-03-31  0:39 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-03-30 23:51 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #5 from Timothy Arceri <t_arceri@yahoo.com.au> ---
Ok built it correctly this time.

No crash with Mesa git and LLVM 7 the sample runs fine on my RX580. Possible
there is a bug in LLVM 6.

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

[-- Attachment #1.2: Type: text/html, Size: 1133 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] 9+ messages in thread

* [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8
  2018-02-22 23:40 [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8 bugzilla-daemon
                   ` (4 preceding siblings ...)
  2018-03-30 23:51 ` bugzilla-daemon
@ 2018-03-31  0:39 ` bugzilla-daemon
  2018-04-01 19:41 ` bugzilla-daemon
  2018-04-01 19:42 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-03-31  0:39 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #6 from Timothy Arceri <t_arceri@yahoo.com.au> ---
(In reply to Timothy Arceri from comment #5)
> Ok built it correctly this time.
> 
> No crash with Mesa git and LLVM 7 the sample runs fine on my RX580. Possible
> there is a bug in LLVM 6.

Ok I tested the LLVM 6.0.0 release with git master and that worked fine for me
too.

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

[-- Attachment #1.2: Type: text/html, Size: 1355 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] 9+ messages in thread

* [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8
  2018-02-22 23:40 [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8 bugzilla-daemon
                   ` (5 preceding siblings ...)
  2018-03-31  0:39 ` bugzilla-daemon
@ 2018-04-01 19:41 ` bugzilla-daemon
  2018-04-01 19:42 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-04-01 19:41 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #7 from Matias N. Goldberg <dark_sylinc@yahoo.com.ar> ---
I just tested with Mesa latest from git
(2f175bfe5d8ca59a8a68b6d6d072cd7bf2f8baa9) and LLVM 7.0 revision 328838
(anything newer and Mesa won't compile due to a known issue) and the problem is
gone.

Either a later Mesa commit already fixed it, or my LLVM version was too old.

This ticket can be closed as the problem can no longer be reproduced.

Thanks and Cheers

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

[-- Attachment #1.2: Type: text/html, Size: 1382 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] 9+ messages in thread

* [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8
  2018-02-22 23:40 [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8 bugzilla-daemon
                   ` (6 preceding siblings ...)
  2018-04-01 19:41 ` bugzilla-daemon
@ 2018-04-01 19:42 ` bugzilla-daemon
  7 siblings, 0 replies; 9+ messages in thread
From: bugzilla-daemon @ 2018-04-01 19:42 UTC (permalink / raw)
  To: dri-devel


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

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

Matias N. Goldberg <dark_sylinc@yahoo.com.ar> changed:

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

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

[-- Attachment #1.2: Type: text/html, Size: 1282 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] 9+ messages in thread

end of thread, other threads:[~2018-04-01 19:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-22 23:40 [Bug 105218] Regresion in 847d0a393d7f0f967f39302900d5330f32b804c8 bugzilla-daemon
2018-03-30 12:08 ` bugzilla-daemon
2018-03-30 12:44 ` bugzilla-daemon
2018-03-30 16:36 ` bugzilla-daemon
2018-03-30 16:40 ` bugzilla-daemon
2018-03-30 23:51 ` bugzilla-daemon
2018-03-31  0:39 ` bugzilla-daemon
2018-04-01 19:41 ` bugzilla-daemon
2018-04-01 19:42 ` 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.