<html><head></head><body>LGTM.<br><br><div class="gmail_quote">Le 17 juillet 2019 14:37:47 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">It's a regular CPU pool similar to default implementation.<hr> modules/video_output/vulkan/display.c | 18 ------------------<br> 1 file changed, 18 deletions(-)<br><br>diff --git a/modules/video_output/vulkan/display.c b/modules/video_output/vulkan/display.c<br>index 412245f126..4a039d3d04 100644<br>--- a/modules/video_output/vulkan/display.c<br>+++ b/modules/video_output/vulkan/display.c<br>@@ -39,14 +39,11 @@<br> #include <libplacebo/swapchain.h><br> #include <libplacebo/vulkan.h><br> <br>-#define VLCVK_MAX_BUFFERS 128<br>-<br> struct vout_display_sys_t<br> {<br>     vlc_vk_t *vk;<br>     const struct pl_tex *plane_tex[4];<br>     struct pl_renderer *renderer;<br>-    picture_pool_t *pool;<br> <br>     // Pool of textures for the subpictures<br>     struct pl_overlay *overlays;<br>@@ -74,7 +71,6 @@ struct vout_display_sys_t<br> };<br> <br> // Display callbacks<br>-static picture_pool_t *Pool(vout_display_t *, unsigned);<br> static void PictureRender(vout_display_t *, picture_t *, subpicture_t *, mtime_t);<br> static void PictureDisplay(vout_display_t *, picture_t *);<br> static int Control(vout_display_t *, int, va_list);<br>@@ -143,7 +139,6 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,<br> <br>     vd->info.subpicture_chromas = subfmts;<br> <br>-    vd->pool = Pool;<br>     vd->prepare = PictureRender;<br>     vd->display = PictureDisplay;<br>     vd->control = Control;<br>@@ -175,23 +170,10 @@ static void Close(vout_display_t *vd)<br>     }<br> <br>     pl_renderer_destroy(&sys->renderer);<br>-    if (sys->pool)<br>-        picture_pool_Release(sys->pool);<br> <br>     vlc_vk_Release(sys->vk);<br> }<br> <br>-static picture_pool_t *Pool(vout_display_t *vd, unsigned requested_count)<br>-{<br>-    assert(requested_count <= VLCVK_MAX_BUFFERS);<br>-    vout_display_sys_t *sys = vd->sys;<br>-    if (sys->pool)<br>-        return sys->pool;<br>-<br>-    sys->pool = picture_pool_NewFromFormat(&vd->fmt, requested_count);<br>-    return sys->pool;<br>-}<br>-<br> static void PictureRender(vout_display_t *vd, picture_t *pic,<br>                           subpicture_t *subpicture, mtime_t date)<br> {</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>