All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 91780] Rendering issues with geometry shader
@ 2015-08-27 21:04 bugzilla-daemon
  2015-08-27 21:06 ` bugzilla-daemon
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-08-27 21:04 UTC (permalink / raw)
  To: dri-devel


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

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

            Bug ID: 91780
           Summary: Rendering issues with geometry shader
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/r600
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: jonas@wielicki.name
        QA Contact: dri-devel@lists.freedesktop.org

Created attachment 117951
  --> https://bugs.freedesktop.org/attachment.cgi?id=117951&action=edit
apitrace which shows the problem

In the attached apitrace, *sometimes* (about 50% of the runs) rendering issues
can be observed. They manifest in appearantly missing geometry (compare
attached screenshot; the UI has been disabled for taking the apitrace).

Steps to reproduce:
1. DRI_PRIME=1 apitrace replay r600-renderbug-noui.trace
2. If step 1 did not show the behaviour, retry a few times.

Expected results:
Rendering should work and show a terrain without holes

Actual results:
Holes in the terrain

The results have been observed on mesa-11.0.0-rc1 with and without
http://lists.freedesktop.org/archives/mesa-dev/2015-August/092766.html applied.

The same code has never (in 50+ tests) shown the issue on the Intel integrated
GPU.

The application which produces the given behaviour can be found at 
https://github.com/horazont/scc/tree/f31d90e1579ebda14ce7a0417339b2cd448efde8

The geometry shader is in:
https://github.com/horazont/scc/blob/f31d90e1579ebda14ce7a0417339b2cd448efde8/game/resources/shaders/terrain/main.geom

The usage is in:
https://github.com/horazont/scc/blob/f31d90e1579ebda14ce7a0417339b2cd448efde8/libffengine-render/src/render/fancyterrain.cpp
(search for draw_elements, GL_GEOMETRY_SHADER, GL_LINES_ADJACENCY)


In another commit, the geometry shader has been disabled
(<https://github.com/horazont/scc/commit/4e1e298b02723efcf6555c1c4a7efa31682cf79b>),
which appears to fix the problem or make it very hard to reproduce.


radeon GPU:
Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD
6630M/6650M/6750M/7670M/7690M] (rev ff)  {6630M according to notebook specs}
intel GPU:
Intel Corporation 2nd Generation Core Processor Family Integrated Graphics
Controller (rev 09)

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

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

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

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

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

* [Bug 91780] Rendering issues with geometry shader
  2015-08-27 21:04 [Bug 91780] Rendering issues with geometry shader bugzilla-daemon
@ 2015-08-27 21:06 ` bugzilla-daemon
  2015-08-27 21:20 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-08-27 21:06 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #1 from Jonas Wielicki <jonas@wielicki.name> ---
Created attachment 117952
  --> https://bugs.freedesktop.org/attachment.cgi?id=117952&action=edit
screenshot of the problem

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

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

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

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

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

* [Bug 91780] Rendering issues with geometry shader
  2015-08-27 21:04 [Bug 91780] Rendering issues with geometry shader bugzilla-daemon
  2015-08-27 21:06 ` bugzilla-daemon
@ 2015-08-27 21:20 ` bugzilla-daemon
  2015-08-27 21:29 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-08-27 21:20 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #2 from Dieter Nützel <Dieter@nuetzel-hh.de> ---
Can you please try with

R600_DEBUG=nosb

And maybe test Mesa-demo 'gsraytrace'?

I got several geometry shader glitches/crashes on Turks, here.
Bugs are open:
https://bugs.freedesktop.org/show_bug.cgi?id=83319
https://bugs.freedesktop.org/show_bug.cgi?id=91503

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

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

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

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

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

* [Bug 91780] Rendering issues with geometry shader
  2015-08-27 21:04 [Bug 91780] Rendering issues with geometry shader bugzilla-daemon
  2015-08-27 21:06 ` bugzilla-daemon
  2015-08-27 21:20 ` bugzilla-daemon
@ 2015-08-27 21:29 ` bugzilla-daemon
  2015-08-27 21:29 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-08-27 21:29 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #3 from Glenn Kennard <glenn.kennard@gmail.com> ---
Dieter, those are unrelated to this issue, which appears to be something
specific to GL_LINES_ADJACENCY primitive type.

The piglit test glsl-1.50-geometry-primitive-types GL_TRIANGLE_STRIP_ADJACENCY
fails which might be related, but curiously the lines adjacency types pass.

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

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

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

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

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

* [Bug 91780] Rendering issues with geometry shader
  2015-08-27 21:04 [Bug 91780] Rendering issues with geometry shader bugzilla-daemon
                   ` (2 preceding siblings ...)
  2015-08-27 21:29 ` bugzilla-daemon
@ 2015-08-27 21:29 ` bugzilla-daemon
  2015-08-28  7:39 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-08-27 21:29 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #4 from Jonas Wielicki <jonas@wielicki.name> ---
(In reply to Dieter Nützel from comment #2)
> Can you please try with
> 
> R600_DEBUG=nosb

Yes, I tried that (should have mentioned it, sorry) and it shows the problem.

> And maybe test Mesa-demo 'gsraytrace'?

Will try that later.

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

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

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

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

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

* [Bug 91780] Rendering issues with geometry shader
  2015-08-27 21:04 [Bug 91780] Rendering issues with geometry shader bugzilla-daemon
                   ` (3 preceding siblings ...)
  2015-08-27 21:29 ` bugzilla-daemon
@ 2015-08-28  7:39 ` bugzilla-daemon
  2015-09-03  9:59 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-08-28  7:39 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #5 from Dave Airlie <airlied@freedesktop.org> ---
just fyi I tested this on CAICOS GPU and SUMO APU today,

and it renders fine on the SUMO but fails similarly on the CAICOS.

This is strange, and it might take someone from AMD doing some research for us.

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

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

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

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

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

* [Bug 91780] Rendering issues with geometry shader
  2015-08-27 21:04 [Bug 91780] Rendering issues with geometry shader bugzilla-daemon
                   ` (4 preceding siblings ...)
  2015-08-28  7:39 ` bugzilla-daemon
@ 2015-09-03  9:59 ` bugzilla-daemon
  2015-09-03 10:00 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-09-03  9:59 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #6 from Jonas Wielicki <jonas@wielicki.name> ---
(In reply to Dieter Nützel from comment #2)
> And maybe test Mesa-demo 'gsraytrace'?

I am having a hard time to get gsraytrace to run. I am not sure whether this is
related to this bug or to PRIME issues, as in general, using the Radeon GPU is
a bit unstable here. The instability manifests in not receiving any rendering
output in the window and sometimes error messages ("radeon: The kernel rejected
CS, see dmesg for more information.").

I made two tests:

FIRST TEST

When trying to run the gsraytrace demo on the radeon, I did not receive visual
output in the window; no rendering took place, the window contents were never
written and were showing what was at that place on the screen before the window
opened. The terminal suggested a frame rate of 1 FPS. No crash happened.

I then tried to distinguish between PRIME failure and demo failure by opening a
glxgears instance on the radeon gpu, which made the whole X11 freeze for a few
seconds and afterwards both glxgears and the gsraytrace demo spammed the above
error message.

SECOND TEST

This time, I started glxgears first to make sure that everything was set up
properly, PRIME-wise. glxgears was running fine at a reasonable frame rate.

Then I started the gsraytrace demo, which made the X11 freeze. (I then went to
fetch some tea) Both programs were spamming the above error message when the
GUI had unfreezed.


At no point I ever saw visual output from the gsraytrace demo. As I said, I am
not sure what of this is purely due to PRIME and what is caused by the bug this
entry refers to. I just wanted to add my data here as it was requested for and
I don’t think I will get better results on my own.

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

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

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

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

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

* [Bug 91780] Rendering issues with geometry shader
  2015-08-27 21:04 [Bug 91780] Rendering issues with geometry shader bugzilla-daemon
                   ` (5 preceding siblings ...)
  2015-09-03  9:59 ` bugzilla-daemon
@ 2015-09-03 10:00 ` bugzilla-daemon
  2015-09-04 13:05 ` bugzilla-daemon
  2015-11-11 23:07 ` bugzilla-daemon
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-09-03 10:00 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #7 from Jonas Wielicki <jonas@wielicki.name> ---
(In reply to Jonas Wielicki from comment #6)
> This time, I started glxgears first to make sure that everything was set up
> properly, PRIME-wise. glxgears was running fine at a reasonable frame rate.
> 
> Then I started the gsraytrace demo, which made the X11 freeze. (I then went
> to fetch some tea) Both programs were spamming the above error message when
> the GUI had unfreezed.

Sorry for the spam, here the output of gsraytrace:


```
GL_RENDERER = Gallium 0.4 on AMD TURKS (DRM 2.42.0, LLVM 3.5.0)

ESC                 = exit demo
left mouse + drag   = rotate camera

radeon: The kernel rejected CS, see dmesg for more information.
0.044456 FPS (1 frames in 22.493999 seconds)
radeon: The kernel rejected CS, see dmesg for more information.
[… the above message repeated a few hundred times before I killed it …]
```

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

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

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

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

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

* [Bug 91780] Rendering issues with geometry shader
  2015-08-27 21:04 [Bug 91780] Rendering issues with geometry shader bugzilla-daemon
                   ` (6 preceding siblings ...)
  2015-09-03 10:00 ` bugzilla-daemon
@ 2015-09-04 13:05 ` bugzilla-daemon
  2015-11-11 23:07 ` bugzilla-daemon
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-09-04 13:05 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #8 from Marek Olšák <maraeo@gmail.com> ---
(In reply to Dave Airlie from comment #5)
> just fyi I tested this on CAICOS GPU and SUMO APU today,
> 
> and it renders fine on the SUMO but fails similarly on the CAICOS.
> 
> This is strange, and it might take someone from AMD doing some research for
> us.

I don't know of any hw bug related to GS that could cause this.

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

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

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

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

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

* [Bug 91780] Rendering issues with geometry shader
  2015-08-27 21:04 [Bug 91780] Rendering issues with geometry shader bugzilla-daemon
                   ` (7 preceding siblings ...)
  2015-09-04 13:05 ` bugzilla-daemon
@ 2015-11-11 23:07 ` bugzilla-daemon
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-11-11 23:07 UTC (permalink / raw)
  To: dri-devel


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

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

Dave Airlie <airlied@freedesktop.org> changed:

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

--- Comment #9 from Dave Airlie <airlied@freedesktop.org> ---
this should now be fixed in master.

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

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

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

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

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

end of thread, other threads:[~2015-11-11 23:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-27 21:04 [Bug 91780] Rendering issues with geometry shader bugzilla-daemon
2015-08-27 21:06 ` bugzilla-daemon
2015-08-27 21:20 ` bugzilla-daemon
2015-08-27 21:29 ` bugzilla-daemon
2015-08-27 21:29 ` bugzilla-daemon
2015-08-28  7:39 ` bugzilla-daemon
2015-09-03  9:59 ` bugzilla-daemon
2015-09-03 10:00 ` bugzilla-daemon
2015-09-04 13:05 ` bugzilla-daemon
2015-11-11 23:07 ` 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.