[Mesa-dev] [PATCH 06/28] configure: rename --with-{egl-, }platforms

Ilia Mirkin imirkin at alum.mit.edu
Tue Dec 13 16:35:37 UTC 2016


On Tue, Dec 13, 2016 at 11:30 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 13 December 2016 at 16:19, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>> On Tue, Dec 13, 2016 at 11:14 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>>> On 13 December 2016 at 16:09, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>>>> On Tue, Dec 13, 2016 at 11:08 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>>>>> On 13 December 2016 at 15:25, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>>>>>> On Thu, Dec 8, 2016 at 2:21 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>>>>>>> From: Emil Velikov <emil.velikov at collabora.com>
>>>>>>>
>>>>>>> Since day 1, Vulkan has depended on --with-egl-platforms to select the
>>>>>>> platforms build.
>>>>>>>
>>>>>>> With earlier commits, we've attributed for that internally by renaming
>>>>>>> the [internal] conditionals in our build. At the same time having the
>>>>>>> --enable-egl and --with-egl-platforms dependency for Vulkan makes no
>>>>>>> sense.
>>>>>>>
>>>>>>> Since where' on the bridge we want to make the conditional generic, thus
>>>>>>> others (such as the gallium VL targets) can honour the respective
>>>>>>> platforms.
>>>>>>>
>>>>>>> Cc: mesa-maintainers at lists.freedesktop.org
>>>>>>> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
>>>>>>> ---
>>>>>>> Should we keep the old configure and error out when anyone provides a
>>>>>>> non-default value ? This way they'll have direct feedback how to move
>>>>>>> forward. Otherwise they'll likely miss the warning message.
>>>>>>
>>>>>> I can't tell what problem this is solving. OTOH this is creating the
>>>>>> problem that everyone's configure lines will need fixing.
>>>>> This need fixing (builder intervention) either way, I'm afraid. Question is
>>>>>  a) should we expect people to read the release notes, or
>>>>>  b) get their attention with an error message, providing an example
>>>>> in order to do the right thing.
>>>>
>>>> (c) leave things alone if this isn't fixing anything other than aesthetics.
>>> It's not aesthetics... atm if you want just Vulkan you still need
>>> --enable-egl --with-egl-platforms=x11,wayland*.
>>> Otherwise it won't have any winsys integration... Not sure if it'll
>>> build/link properly even :-(
>>
>> So error the build and say you don't support that configuration if you
>> enable vulkan and don't enable any winsys stuff. Or make it so that
>> --enable-egl sets the default value of --with-egl-platforms to
>> whatever. Don't break everyone's builds, bisects, etc.
>>
> Sounds like you've not looked at the lovely stuff we have in there. I
> welcome you to do so.
>
> That aside:
> Your suggestions contradict each other - on one hand you're saying
> "error out" in a what is buggy yet valid usecase. On the other hand
> you're against AC_MSG_ERROR since it will break X/Y usecase.

I thought you said it didn't currently work. If it doesn't work, or is
unsupportable, error out. If it currently works, and is supportable -
keep it working.

>
> Also "everyone" is a mild overstatement, but I guess we all know that ;-)

Perhaps I'm misunderstanding. This will break everyone that has
--with-egl-platforms in their configure line, no? If not, disregard my
comments.

I imagine that nearly everyone that does development on mesa has that
flag in their configure line. That means any bisect will require
changing the configure line as you cross this commit on the bisect.
This is very annoying. Sometimes it's required, but it shouldn't be
done lightly.

So I'll ask again because it's still unclear to me - what *problem* is
this fixing? I.e. what currently doesn't work that you are trying to
make work?

  -ilia


More information about the mesa-dev mailing list