Bug 11336

Summary: FreeBSD drm modules do not compile (drmP.h)
Product: DRI Reporter: Joe Peterson <lavajoe>
Component: DRM/otherAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:

Description Joe Peterson 2007-06-22 07:39:45 UTC
I am using code from Gentoo's ebuild: x11-drm-20070314, and I get a compilation failure.  The problem seems to be that the drmP.h in bsd-core is missing an element in a structure:

typedef struct ati_pcigart_info {
	int gart_table_location;
	int is_pcie;
	void *addr;
	dma_addr_t bus_addr;
	drm_local_map_t mapping;
	int table_size;             <-----
} drm_ati_pcigart_info;

The "int table_size;" element exists in linux-core but not bsd-core.

P.S. I would check the current CVS source, but it appears I need an account...
Comment 1 Tormod Volden 2007-06-25 10:08:44 UTC
CVS is not used any longer, but git:
http://gitweb.freedesktop.org/?p=mesa/drm.git;a=summary

And there the structure looks good. This was fixed in commit b0c8d885ce645aee5027a75e4149ba4be265b55d

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.