<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><br>
</div>
<blockquote cite="mid:526D8061.6080007@clipper.ens.fr" type="cite">On
22/10/2013 17:23, David Herrmann wrote :
<br>
<blockquote type="cite">Btw., I got this working with i915 by
allowing GEM_OPEN/GEM_FLINK on
<br>
the render-node. So if someone else tests this, you might need
the
<br>
same hacks. I will try to find the code in mesa that requires
this.
<br>
<br>
David
<br>
</blockquote>
<br>
This comes from 'intel_region_alloc_for_handle', which is called
in 'intel_process_dri2_buffer'.
<br>
<br>
</blockquote>
I've just talked with Christopher James Halse Rogers, and he already
made patches that should solve that.<br>
<br>
The patches to support driImage version 7 were posted recently on
Mesa,<br>
<br>
And his older patches (probably need rebasing):<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a
href="https://github.com/RAOF/mesa/commit/cc797647eaa0e59929eca09ad1c5936cab74144b">https://github.com/RAOF/mesa/commit/cc797647eaa0e59929eca09ad1c5936cab74144b</a><br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a
href="https://github.com/RAOF/mesa/commit/1ff8df28f25f98b2e4a12f7fb3085b7d0adbfdf3">https://github.com/RAOF/mesa/commit/1ff8df28f25f98b2e4a12f7fb3085b7d0adbfdf3</a><br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a
href="https://github.com/RAOF/mesa/commit/59e6361e9c76bb32c3fe96482ae0b31493dc3b3c">https://github.com/RAOF/mesa/commit/59e6361e9c76bb32c3fe96482ae0b31493dc3b3c</a><br>
<br>
Combined with setting the name field to null (instead of generating
a name) and setting the fd field to a prime dma-buf when creating a
buffer (in get_back_bo),<br>
it should avoid using names at all, and use dma-buf in Mesa, thus
enabling using render-nodes with Mesa.<br>
<br>
<br>
Axel<br>
<br>
</body>
</html>