dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.freedesktop.org
Subject: [Bug 82977] New: freeze when copying between larger OpenGL buffers (glCopyBufferSubData)
Date: Fri, 22 Aug 2014 22:32:07 +0000	[thread overview]
Message-ID: <bug-82977-502@http.bugs.freedesktop.org/> (raw)


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

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

          Priority: medium
            Bug ID: 82977
          Assignee: dri-devel@lists.freedesktop.org
           Summary: freeze when copying between larger OpenGL buffers
                    (glCopyBufferSubData)
          Severity: normal
    Classification: Unclassified
                OS: Linux (All)
          Reporter: osbios@web.de
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: git
         Component: Drivers/Gallium/radeonsi
           Product: Mesa

Created attachment 105127
  --> https://bugs.freedesktop.org/attachment.cgi?id=105127&action=edit
glxinfo

Ubuntu 14.04. With Oibaf repository for GPU drivers.
Radeon 7870 (Pitcairn)

When I try to run glCopyBufferSubData on large buffers (128MB works ok, 200MiB
not) my Desktop freezes and I only can move the mouse around.
The mouse curser image stays the same after that. E.g. a normal pointer or text
marker icon.

I have no relevant message in dmsg.0 or Xorg.1.log, as far as I can tell.


Minimal example code that will trigger the freeze (After using sdl2 to init
Core GL3.3 Context + Window):

int bufferSize = 200 * 1024 * 1024;
GLuint clientBufferId, serverBufferId;
glGenBuffers(1, &clientBufferId);
glBindBuffer(GL_ARRAY_BUFFER, clientBufferId);
glBufferStorage(GL_ARRAY_BUFFER, bufferSize, 0, /*GL_DYNAMIC_STORAGE_BIT |
GL_MAP_WRITE_BIT | GL_MAP_READ_BIT | GL_MAP_PERSISTENT_BIT|
GL_CLIENT_STORAGE_BIT*/0);

glGenBuffers(1, &serverBufferId);
glBindBuffer(GL_ARRAY_BUFFER, serverBufferId);
glBufferStorage(GL_ARRAY_BUFFER, bufferSize, 0, 0);

glBindBuffer(GL_ARRAY_BUFFER, 0);
glBindBuffer(GL_COPY_READ_BUFFER,  clientBufferId);
glBindBuffer(GL_COPY_WRITE_BUFFER, serverBufferId);
glCopyBufferSubData(GL_COPY_READ_BUFFER, GL_COPY_WRITE_BUFFER, 0, 0,
bufferSize);

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

[-- Attachment #1.2: Type: text/html, Size: 3322 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

             reply	other threads:[~2014-08-22 22:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-22 22:32 bugzilla-daemon [this message]
2014-08-23  2:31 ` [Bug 82977] freeze when copying between larger OpenGL buffers (glCopyBufferSubData) bugzilla-daemon
2014-08-23 11:26 ` bugzilla-daemon
2014-08-23 11:26 ` bugzilla-daemon
2014-08-23 11:27 ` bugzilla-daemon
2014-08-23 11:29 ` bugzilla-daemon
2014-08-23 22:29 ` bugzilla-daemon
2014-08-23 22:29 ` bugzilla-daemon
2014-08-23 22:30 ` bugzilla-daemon
2014-08-23 22:32 ` bugzilla-daemon
2014-08-25 12:11 ` bugzilla-daemon
2014-08-26  6:29 ` bugzilla-daemon
2014-08-26 13:10 ` bugzilla-daemon
2014-08-26 13:11 ` bugzilla-daemon
2014-08-26 13:49 ` bugzilla-daemon
2014-08-26 18:03 ` bugzilla-daemon
2014-08-27  8:23 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-82977-502@http.bugs.freedesktop.org/ \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).