On Sat, Jan 27, 2018 at 7:08 PM, Matt Turner <matts...@gmail.com> wrote:
> On Sat, Jan 27, 2018 at 4:02 PM, Matt Turner <matts...@gmail.com> wrote:
>> On Sat, Jan 27, 2018 at 10:06 AM, Rob Clark <robdcl...@gmail.com> wrote:
>>> Signed-off-by: Rob Clark <robdcl...@gmail.com>
>>> ---
>>>  run.c | 12 ++++++++++++
>>>  1 file changed, 12 insertions(+)
>>>
>>> diff --git a/run.c b/run.c
>>> index 69fe23d..20a0a6a 100644
>>> --- a/run.c
>>> +++ b/run.c
>>> @@ -520,6 +520,18 @@ main(int argc, char **argv)
>>>      };
>>>      EGLContext core_ctx = eglCreateContext(egl_dpy, cfg, EGL_NO_CONTEXT,
>>>                                             attribs);
>>> +
>>> +    if (core_ctx == EGL_NO_CONTEXT) {
>>> +        static const EGLint attribs_31[] = {
>>> +            EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR,
>>> +            EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR,
>>
>> Profiles are only introduced in v3.2. I can't see how this can work.
>
> If you want to fall back to 3.1, you just request the version without
> the PROFILE_MASK, so just remove these two lines.
>
> If I had to guess what you're aiming for... I'd say freedreno only
> does 3.1 and this allows it to handle some #version 140 (GL 3.1)
> shaders?

correct, missing geom shaders..

hmm, getting "Couldn't find current GLX or EGL context." from
somewhere (waffle?).. will need to debug further a bit later..

BR,
-R
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to