Re: Question about eglCreatePbufferSurface with empty attrib_list

Adam Jackson <[email protected]>
Newsgroups gmane.comp.video.mesa3d.devel
Message-ID <CAD_bs+qSf8VZyQVOQV7VqwMdkKY1OwpdLny=yfWqdUTAO2WQFA@mail.gmail.com>
AFAIK this was the pre-framebuffer-object / OES_surfaceless_context way of
making a context current without (really) having a bound surface. That said
I don't think Mesa actually implements that feature correctly, atm I think
you'll get a BadValue from the xcb_create_pixmap call, but patches to fix
that would be welcome.

- ajax

On Mon, Jul 18, 2022 at 10:28 PM Lin, Shuicheng <[email protected]>
wrote:

> Hi,
>
> In spec, eglCreatePbufferSurface is allowed to be called with attrib_list
> is NULL or empty, which means EGL_WIDTH/EGL_HEIGHT for the surface is 0.
>
> And in mesa code, specific to android path, I cannot find the width/height
> could be updated to a normal value.
>
> Also the eglMakeCurrent call after the eglCreatePbufferSurface, will use
> the 0 width/height to allocate buffer, which seems un-reasonable.
>
> Could you share me why 0 is allowed for width/height, and how app will use
> the PbufferSurface later?
>
> Thanks.
>
>
>
> Best Regards
>
> Shuicheng
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.