<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:jadahl@gmail.com" title="Jonas Ådahl <jadahl@gmail.com>"> <span class="fn">Jonas Ådahl</span></a>
</span> changed
<a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Protocol: wl_buffer.release is racy"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75303">bug 75303</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>jadahl@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Protocol: wl_buffer.release is racy"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75303#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - Protocol: wl_buffer.release is racy"
href="https://bugs.freedesktop.org/show_bug.cgi?id=75303">bug 75303</a>
from <span class="vcard"><a class="email" href="mailto:jadahl@gmail.com" title="Jonas Ådahl <jadahl@gmail.com>"> <span class="fn">Jonas Ådahl</span></a>
</span></b>
<pre>Why can't we just let wl_buffer.release simply be a notification about the
buffer being reusable, meaning,
After a client commits a surface with a wl_buffer@1 attached, it should be
consider busy until it receives the release event. If the client attaches the
same wl_buffer@1 to multiple surfaces, its still up to the server to let the
client know when the buffer is no longer used, and may be reused by the client.
I.e.
1. surface1.attach(buffer1)
2. surface1.commit (client should consider buffer1 busy until further notice)
3. surface2.attach(buffer1)
4. surface2.commit (this deosn't change the buffer1 busy state)
..would result in a single buffer1.release() event being emitted whenever the
server doesn't use buffer1 for neither surfaces. This is how I'd interpret the
current wording in the specification as well; being more or less orthogonal to
commits and frame callbacks.
Or is there something I'm missing? Why would it be important to get release
events per commits?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>