Re: [Mesa-dev] [PATCH] loader/dri3: Avoid freeing renderbuffers in use

2018-01-11 Thread Thomas Hellstrom
On 01/11/2018 04:32 PM, Michel Dänzer wrote: On 2018-01-11 10:53 AM, Thomas Hellstrom wrote: Upon reception of an event that lowered the number of active back buffers, the code would immediately try to free all back buffers with an id equal to or higher than the new number of active back buffers

Re: [Mesa-dev] [PATCH] loader/dri3: Avoid freeing renderbuffers in use

2018-01-11 Thread Kenneth Graunke
On Thursday, January 11, 2018 1:53:48 AM PST Thomas Hellstrom wrote: > Upon reception of an event that lowered the number of active back buffers, > the code would immediately try to free all back buffers with an id equal to or > higher than the new number of active back buffers. > > However, that

Re: [Mesa-dev] [PATCH] loader/dri3: Avoid freeing renderbuffers in use

2018-01-11 Thread Michel Dänzer
On 2018-01-11 10:53 AM, Thomas Hellstrom wrote: > Upon reception of an event that lowered the number of active back buffers, > the code would immediately try to free all back buffers with an id equal to or > higher than the new number of active back buffers. > > However, that could lead to an acti

Re: [Mesa-dev] [PATCH] loader/dri3: Avoid freeing renderbuffers in use

2018-01-11 Thread Vadim Shovkoplias
Tested-by: Vadym Shovkoplias This patch also fixes similar issue with SHENZHEN I/O game ( https://bugs.freedesktop.org/show_bug.cgi?id=104392) Tested on HP Zbook. 2018-01-11 11:53 GMT+02:00 Thomas Hellstrom : > Upon reception of an event that lowered the number of active back buffers, > the cod

Re: [Mesa-dev] [PATCH] loader/dri3: Avoid freeing renderbuffers in use

2018-01-11 Thread Andriy Khulap
Tested-by: Andriy.Khulap Fixes Bug 104301 (https://bugs.freedesktop.org/show_bug.cgi?id=104301) on Intel(R) HD Graphics 530 (Skylake GT2) (0x191b) Ubuntu 16.04 Kernel 4.4.0 Mesa 17.4.0-devel (git-4f1e500) mpv 0.14.0-git-e1993d5 *Andriy Khulap | Software Engineer* Mobile: +38-067-607-27-80 Skype

[Mesa-dev] [PATCH] loader/dri3: Avoid freeing renderbuffers in use

2018-01-11 Thread Thomas Hellstrom
Upon reception of an event that lowered the number of active back buffers, the code would immediately try to free all back buffers with an id equal to or higher than the new number of active back buffers. However, that could lead to an active or to-be-active back buffer being freed, since the old