xf86-video-intel-git + xserver-no-pci-rework-git: compile failure "'drm_i915_flip_t' has no member named 'planes'"
Jesse Barnes
jbarnes at virtuousgeek.org
Tue Sep 11 13:50:11 PDT 2007
On Tuesday, September 11, 2007 10:39 am Roland Scheidegger wrote:
> On 9/11/07, Jens Stroebel <dr-xorg at bcsoft.de> wrote:
> > Hello all.
> >
> > When trying to compile xf86-video-intel, I get
> >
> > ###################################################################
> > i830_dri.c: In function 'I830DRISwapContext':
> > i830_dri.c:1291: error: unknown field 'planes' specified in
> > initializer i830_dri.c:1297: error: 'drm_i915_flip_t' has no member
> > named 'planes' i830_dri.c:1304: error: 'drm_i915_flip_t' has no
> > member named 'planes' make[3]: *** [i830_dri.lo] Error 1
>
> Looks like you need new drm header files from git...
Yeah, unfortunately we have several copies of the DRM interface header
lying around: one in the DDX driver, three in the Mesa tree and one in
the DRM tree. You might say "why isn't the DRM copy the canonical
one?", to which I answer "It should be.", but we're not quite there
yet. Until then, you'll have to deal with stuff like this:
#ifndef HAVE_I915_FLIP
#define DRM_VBLANK_FLIP 0x8000000
typedef struct drm_i915_flip {
int planes;
} drm_i915_flip_t;
...
#endif
(Yes those are three space indents. Ouch.)
I'm about to change this again, but in the meantime things should work
if you update your libdrm installation.
Jesse
More information about the xorg
mailing list