From: bugzilla-daemon@freedesktop.org Subject: [Bug 103304] multi-threaded usage of Gallium RadeonSI leads to NULL pointer exception in pb_cache_reclaim_buffer Date: Wed, 18 Oct 2017 11:29:34 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1491964104==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 5465C6E87C for ; Wed, 18 Oct 2017 11:29:34 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1491964104== Content-Type: multipart/alternative; boundary="15083261740.15Fd73.19276"; charset="UTF-8" --15083261740.15Fd73.19276 Date: Wed, 18 Oct 2017 11:29:34 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D103304 --- Comment #4 from Luc --- Yes, we use the glFenceSync() / glWaitSync() system. We have multiple buffers going around and after each vsync a check is done which can be recycled using the non blocking glWaitSync. However, will check if this is done everywhere correctly in our code.=20 Reason of the multi-threading was the format change done during texture upl= oad (which took a lot of cpu power). However, now we do this in a worker thread with optimized code, before doing the texture upload (so to assure the form= at is compatible with the GPU before requesting the texture upload). Therefore I adapted the code so that both (texture upload and rendering/flu= sh) are now done in one thread as a work around. --=20 You are receiving this mail because: You are the assignee for the bug.= --15083261740.15Fd73.19276 Date: Wed, 18 Oct 2017 11:29:34 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 4 on bug 10330= 4 from Luc
Yes, we use the glFenceSync() / glWaitSync() system.
We have multiple buffers going around and after each vsync a check is done
which can be recycled using the non blocking glWaitSync.
However, will check if this is done everywhere correctly in our code.=20

Reason of the multi-threading was the format change done during texture upl=
oad
(which took a lot of cpu power). However, now we do this in a worker thread
with optimized code, before doing the texture upload (so to assure the form=
at
is compatible with the GPU before requesting the texture upload).

Therefore I adapted the code so that both (texture upload and rendering/flu=
sh)
are now done in one thread as a work around.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15083261740.15Fd73.19276-- --===============1491964104== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1491964104==--