[PATCH] fix drm_i915_flip_t breakage

Brian Paul brian.paul at tungstengraphics.com
Fri Sep 28 17:19:48 PDT 2007

Dave Airlie wrote:
>> I've got a few issues using the git heads of Mesa, DRM and xf86-video-intel:
>> 1. The Mesa 7.0.2 branch doesn't build with drm/master.
>> Compiling dri_bufmgr.c:
>> ../common/dri_bufmgr.c: In function 'driFenceBuffers':
>> ../common/dri_bufmgr.c:102: warning: passing argument 3 of
>> 'drmFenceBuffers' makes integer from pointer without a cast
>> ../common/dri_bufmgr.c:102: error: too few arguments to function
>> 'drmFenceBuffers'
>> Compiling i915tex/intel_buffers.c:
>> intel_buffers.c: In function 'intelWindowMoved':
>> intel_buffers.c:290: error: 'drm_i915_flip_t' has no member named 'pipes'
>> intel_buffers.c:298: error: 'drm_i915_flip_t' has no member named 'pipes'
>> intel_buffers.c: In function 'intelPageFlip':
>> intel_buffers.c:764: error: 'drm_i915_flip_t' has no member named 'pipes'
>> Is this supposed to work?  If so, please fix it.
>> If Mesa 7.0.2 is not intended to work with drm/master, what revision of
>> drm should work?
> It should build against the last release of libdrm, not master, master
> isn't released and when it gets released it'll be libdrm3 due to the
> ttm api...  if it can't build against that due to the missing TTM then
> disable i915tex builds by default...
> Now if there isn't a current release we can build Mesa 7.0.2 against
> that is an issue, I also think we shouldn't be building i915tex by
> default in Mesa 7.0.2 until we can get the API issues all sorted out
> otherwise we'll just get pain in the future..

Does the version of xf86-video-intel factor into this too?

I'm presently using:
	Mesa from mesa_7_0_branch
	DRM from drm-2.3.0 tag
	xf86-video-intel from head/master

When I run glxinfo I get:

libGL: XF86DRIGetClientDriverName: 1.9.0 i915 (screen 0)
libGL: OpenDriver: trying /home/brian/m7/lib/i915_dri.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0

ERROR!  mapping regions
libGL warning: 3D driver returned no fbconfigs.
libGL error: InitDriver failed


More information about the xorg mailing list