All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 108261] [amdgpu][GL_ARB_bindless_texture][opengl 4] GPU hang on AMD Raven
@ 2018-10-06 20:07 bugzilla-daemon
  2018-10-06 20:09 ` bugzilla-daemon
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-10-06 20:07 UTC (permalink / raw)
  To: dri-devel


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

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

            Bug ID: 108261
           Summary: [amdgpu][GL_ARB_bindless_texture][opengl 4] GPU hang
                    on AMD Raven
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/radeonsi
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: RobusGrobus95@gmail.com
        QA Contact: dri-devel@lists.freedesktop.org

GPU hang appears when trying to render scene to FBO (framebuffer object) with
attached texture with resident handle, but if all the handles of attached
texture are not reesident (or if there is no handles), hang disappears. For
example this pseudocode causes GPU hang:
  GLuint renderbufId;
  glCreateRenderbuffers(1, &renderbufId);
  glNamedRenderbufferStorage(renderbufId, GL_DEPTH_COMPONENT, width(),
height());

  GLuint texId;
  glCreateTextures(GL_TEXTURE_2D, 1, &texId);
  glTextureStorage2D(texId, 1, GL_RGBA8, width(), height());

  GLuint64 handle = glGetTextureHandleARB(texId);
  glMakeTextureHandleResidentARB(handle);

  glBindFramebuffer(GL_FRAMEBUFFER, fboID);
  glFramebufferTexture(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, texId, 0);
  glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT,
GL_RENDERBUFFER, rboId);
  //render some triangles
  glBindFramebuffer(GL_FRAMEBUFFER, 0);
  //render main scene
  glSwapBuffers();

And this not:
  GLuint renderbufId;
  glCreateRenderbuffers(1, &renderbufId);
  glNamedRenderbufferStorage(renderbufId, GL_DEPTH_COMPONENT, width(),
height());

  GLuint texId;
  glCreateTextures(GL_TEXTURE_2D, 1, &texId);
  glTextureStorage2D(texId, 1, GL_RGBA8, width(), height());

  GLuint64 handle = glGetTextureHandleARB(texId);
  std::cout << handle << std::endl; //prevent optimizing out

  glBindFramebuffer(GL_FRAMEBUFFER, fboID);
  glFramebufferTexture(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, texId, 0);
  glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT,
GL_RENDERBUFFER, rboId);
  //render some triangles
  glBindFramebuffer(GL_FRAMEBUFFER, 0);
  //render main scene
  glSwapBuffers();

I can try to write full cpp sample for exposing the hang, if it's needed. There
is already open source graphic engine (my "pet" project) affected by the hang,
but code is quite complex (https://gitlab.com/KawaiiGraphics/Kawaii3D
https://gitlab.com/KawaiiGraphics/Misaka3D ; 
workaround added in commit b53d98dacff2b0392c2143c8901289e93ddd8623, so only
previous versions are affected).

My hardware:
APU: AMD Ryzen 5 2400G (with integrated GPU Radeon Vega 11 Graphics)
System board: MSI AM4 X470 Gaming Pro
RAM: Goodram Iridium 16Gb (8+8 Gb dual-channel 2800MHz)

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

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

* [Bug 108261] [amdgpu][GL_ARB_bindless_texture][opengl 4] GPU hang on AMD Raven
  2018-10-06 20:07 [Bug 108261] [amdgpu][GL_ARB_bindless_texture][opengl 4] GPU hang on AMD Raven bugzilla-daemon
@ 2018-10-06 20:09 ` bugzilla-daemon
  2018-10-06 20:13 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-10-06 20:09 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #1 from RobusGrobus95@gmail.com ---
> workaround added in commit b53d98dacff2b0392c2143c8901289e93ddd8623, so only previous versions are affected
this about https://gitlab.com/KawaiiGraphics/Misaka3D

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

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

* [Bug 108261] [amdgpu][GL_ARB_bindless_texture][opengl 4] GPU hang on AMD Raven
  2018-10-06 20:07 [Bug 108261] [amdgpu][GL_ARB_bindless_texture][opengl 4] GPU hang on AMD Raven bugzilla-daemon
  2018-10-06 20:09 ` bugzilla-daemon
@ 2018-10-06 20:13 ` bugzilla-daemon
  2018-11-26 11:32 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-10-06 20:13 UTC (permalink / raw)
  To: dri-devel


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

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

RobusGrobus95@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|All                         |Linux (All)
           Hardware|Other                       |x86-64 (AMD64)

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

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

* [Bug 108261] [amdgpu][GL_ARB_bindless_texture][opengl 4] GPU hang on AMD Raven
  2018-10-06 20:07 [Bug 108261] [amdgpu][GL_ARB_bindless_texture][opengl 4] GPU hang on AMD Raven bugzilla-daemon
  2018-10-06 20:09 ` bugzilla-daemon
  2018-10-06 20:13 ` bugzilla-daemon
@ 2018-11-26 11:32 ` bugzilla-daemon
  2018-11-27  7:56 ` bugzilla-daemon
  2019-09-25 18:10 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-11-26 11:32 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #2 from Domen <domen.stangar@gmail.com> ---
We have same issue. Could you link fault info from kernel messages ?

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

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

* [Bug 108261] [amdgpu][GL_ARB_bindless_texture][opengl 4] GPU hang on AMD Raven
  2018-10-06 20:07 [Bug 108261] [amdgpu][GL_ARB_bindless_texture][opengl 4] GPU hang on AMD Raven bugzilla-daemon
                   ` (2 preceding siblings ...)
  2018-11-26 11:32 ` bugzilla-daemon
@ 2018-11-27  7:56 ` bugzilla-daemon
  2019-09-25 18:10 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-11-27  7:56 UTC (permalink / raw)
  To: dri-devel


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

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

Domen <domen.stangar@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://bugs.freedesktop.or
                   |                            |g/show_bug.cgi?id=108814

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

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

* [Bug 108261] [amdgpu][GL_ARB_bindless_texture][opengl 4] GPU hang on AMD Raven
  2018-10-06 20:07 [Bug 108261] [amdgpu][GL_ARB_bindless_texture][opengl 4] GPU hang on AMD Raven bugzilla-daemon
                   ` (3 preceding siblings ...)
  2018-11-27  7:56 ` bugzilla-daemon
@ 2019-09-25 18:10 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2019-09-25 18:10 UTC (permalink / raw)
  To: dri-devel


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

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

GitLab Migration User <gitlab-migration@fdo.invalid> changed:

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

--- Comment #3 from GitLab Migration User <gitlab-migration@fdo.invalid> ---
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.

You can subscribe and participate further through the new bug through this link
to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1331.

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

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

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

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

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

end of thread, other threads:[~2019-09-25 18:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-06 20:07 [Bug 108261] [amdgpu][GL_ARB_bindless_texture][opengl 4] GPU hang on AMD Raven bugzilla-daemon
2018-10-06 20:09 ` bugzilla-daemon
2018-10-06 20:13 ` bugzilla-daemon
2018-11-26 11:32 ` bugzilla-daemon
2018-11-27  7:56 ` bugzilla-daemon
2019-09-25 18:10 ` 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.