[Mesa-dev] [Bug 101556] [llvmpipe] crashes when GL context is created and a previous context was shared

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 22 09:38:35 UTC 2017


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

--- Comment #1 from Florian Link <florianlink at gmail.com> ---
I reverted the commit from 

https://github.com/mesa3d/mesa/commit/043883647acaee0b2c67c1c6b496404ebb4e8d67

and then the crash is gone. The problem seems to be: 

stw_context.c: line 442:
         if (old_ctx->shared) {
            struct pipe_fence_handle *fence = NULL;
            old_ctx->st->flush(old_ctx->st,
                               ST_FLUSH_FRONT | ST_FLUSH_WAIT, &fence);
         }
         else {
            old_ctx->st->flush(old_ctx->st, ST_FLUSH_FRONT, NULL);
         }

if I change that back to just:

            old_ctx->st->flush(old_ctx->st, ST_FLUSH_FRONT, NULL);

then the crash is gone. Since the fence pointer points to NULL and stays NULL,
the old_ctx->st->flush crashes.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170622/f985d485/attachment-0001.html>


More information about the mesa-dev mailing list