<div dir="ltr"><div dir="ltr"> </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 30, 2020 at 10:49 AM Elie Tournier <<a href="mailto:tournier.elie@gmail.com" target="_blank">tournier.elie@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Fri, Mar 27, 2020 at 05:10:43PM -0700, Gurchetan Singh wrote:<br>
> On Wed, Mar 25, 2020 at 5:17 AM Elie Tournier <<a href="mailto:tournier.elie@gmail.com" target="_blank">tournier.elie@gmail.com</a>><br>
> wrote:<br>
> <br>
> > Hi all,<br>
> ><br>
> > I'm currently working on OpenGL 4.5 support for virgl.<br>
> > For that, we need to implement ARB_clear_texture and ARB_buffer_storage.<br>
> > The first one is almost finish, and I should submit a MR soon-ish.<br>
> > The second one, ARB_buffer_storage is trickier to implement.<br>
> ><br>
> > So I'm wondering if any of you started something already?<br>
> > Do you have a design in mind?<br>
> ><br>
> <br>
> Hmm, depends on where you want to implement ARB_buffer_storage:<br>
I mean, the goal here is to help the project to going further.<br>
It seems that you started (1) but I guess you are interested by (3).<br>
Would it make sense to go gradually and do (1) -> (2) -> (3) as<br>
iiuc, we can reuse bits from the previous iteration?</blockquote><div><br></div><div>(1) should work pretty easily, since we got dEQP-vk.memory.* working [with Android Emulator VK impl].</div><div> </div><div>I think the trickiest part of the entire chain is (3) [it sounds like this your end goal too?]. In particular, the lack of GLES coherent support ... I think we may need to add some extensions or extend <span style="color:rgb(0,0,0);white-space:pre-wrap">EXT_external_objects. A good place to start is a feasibility study about such extensions, or auditing your target drivers (i965?). </span></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Also, are you aware of app that heavily depend on the buffer storage extension?<br></blockquote><div> </div><div><a href="https://gitlab.freedesktop.org/virgl/virglrenderer/-/issues/109" target="_blank">https://gitlab.freedesktop.org/virgl/virglrenderer/-/issues/109</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> <br>
> 1) Single process, host GL drivers (normal QEMU) -- yes, I think<br>
> RESOURCE_CREATE_BLOB here[1] should do the trick. A bunch of virglrenderer<br>
> cleanups need to land first though.<br>
Thanks for the pointer, I will have a look to drm then.<br>
Do you have that cleanup already? I can help for the review if so.<br></blockquote><div><br></div><div>Chia has wip MR here:<br></div><div><br></div><div><a href="https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/364" target="_blank">https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/364</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> 2) multi-process, host GL drivers (vhost-user gpu) -- trickier, need<br>
> emulated coherent memory [2] for the general case.<br>
> 3) multi-process, host GLES drivers (crosvm) -- even trickier and driver<br>
> specific, since GLES doesn't have GL_MAP_COHERENT_BIT.<br>
> <br>
> [1]<br>
> <a href="https://gitlab.freedesktop.org/virgl/drm-misc-next/-/commits/virtio-gpu-next" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/virgl/drm-misc-next/-/commits/virtio-gpu-next</a><br>
> [2] <a href="https://lists.freedesktop.org/archives/dri-devel/2019-April/215731.html" rel="noreferrer" target="_blank">https://lists.freedesktop.org/archives/dri-devel/2019-April/215731.html</a><br>
> <br>
> Thanks, have a nice day,<br>
> > Elie<br>
> > _______________________________________________<br>
> > virglrenderer-devel mailing list<br>
> > <a href="mailto:virglrenderer-devel@lists.freedesktop.org" target="_blank">virglrenderer-devel@lists.freedesktop.org</a><br>
> > <a href="https://lists.freedesktop.org/mailman/listinfo/virglrenderer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/virglrenderer-devel</a><br>
> ><br>
</blockquote></div></div>