[Mesa-users] Mesa 17 Wayland EGL changes

Cédric Legrand legrand.cedric.01 at gmail.com
Wed Feb 15 11:03:44 UTC 2017


2017-02-14 13:41 GMT+01:00 Cédric Legrand <legrand.cedric.01 at gmail.com>:

> 2017-02-14 13:13 GMT+01:00 Pekka Paalanen <ppaalanen at gmail.com>:
>
>> On Tue, 14 Feb 2017 12:58:33 +0100
>> Cédric Legrand <legrand.cedric.01 at gmail.com> wrote:
>>
>> > 2017-02-13 15:40 GMT+01:00 Pekka Paalanen <ppaalanen at gmail.com>:
>> >
>>
>> > I'm still unable to get hardware acceleration with the
>> > EGL_WL_bind_wayland_display extension working (question 3). I'm pretty
>> sure
>> > I missed a little stupid detail, but I can't get what exactly. If
>> someone
>> > could at least point me to a typical workflow, this may help me.
>>
>> Maybe follow what Weston does with it?
>>
>> https://cgit.freedesktop.org/wayland/weston/tree/libweston/g
>> l-renderer.c?id=1.99.92#n1997
>>
>> gl_renderer_attach() -> gl_renderer_attach_egl()
>>
>> You do handle different wl_buffer types (wl_shm, EGL, ...) accordingly,
>> right?
>>
>>
>> Thanks,
>> pq
>>
>
Finally got it, it had nothing to do with the extension per se, but with my
lack of experience with OpenGL. As I though it was a very little detail:
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
    glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

I already tried it, but did not work because I did not bind the texture
before running it. Shame on me.

Sorry to have taken some of your time for this stupid mistake, and thanks
for all the help.
Cédric Legrand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-users/attachments/20170215/fa6af8c4/attachment.html>


More information about the mesa-users mailing list