[Mesa-dev] [PATCH] configure: set HAVE_COMMON_DRI when building plain classic swrast

Emil Velikov emil.l.velikov at gmail.com
Fri Oct 11 21:25:41 CEST 2013


On 11/10/13 19:59, Matt Turner wrote:
> On Fri, Oct 11, 2013 at 9:19 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>> Commit d81632fb1(dri: Merge drisw_util.c into dri_util.c) unified the
>> dri and drisw util code, but forgot to set HAVE_COMMON_DRI. Thus the
>> translations for driconf (that drisw now depends on) were not built,
>> leading to a build errors.
>>
>> This is the equivalent for classic dri drivers of commit 757ec72b2
>> (configure: set HAVE_COMMON_DRI when building only swrast).
>>
>> Cc: Eric Anholt <eric at anholt.net>
>> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70378
>> Reported-by: Fabio Pedretti <fabio.ped at libero.it>
>> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
>> ---
> 
> As far as I recall, the purpose of HAVE_COMMON_DRI was to build the
> common DRI code only when needed (i.e., needed for DRI drivers, not
> needed for swrast). The problem according to ffc8494db is that someone
> wants the ability to build classic swrast without xf86drm.h.
> 
> I think now that xf86drm.h's include is protected by __NOT_HAVE_DRM_H
> we can now just drop HAVE_COMMON_DRI entirely. Right?
> 
Sounds like a plan, with a minor side effect that you'll be building the
code when you do not need it - osmesa, and any non-dri gallium targets.

Your suggestion sounds reasonable, if you're happy with the side effect.

Note: this patch does _not_ handle the reported issue. It's related
issue but the bug will require another patch.

~Emil



More information about the mesa-dev mailing list