[Mesa3d-dev] sizeof(RADEONDRIRec) does not match passed size from device driver
Bernardo Innocenti
bernie at develer.com
Mon Aug 22 20:22:53 PDT 2005
Bernardo Innocenti wrote:
>>>I still can't get OpenGL acceleration to work with today's
>>>snapshots of xc, Mesa and drm on x86_64 with r200.
>>>
>>>The expected size of struct RADEONDRIRec is 100 bytes,
>>>but the client gets a size of 120 bytes from the server.
>>
>>Probably because X is still building against the old DRM header files..
>>
>>We need to import a newer drm into the monolith .. try changing the
>>drm_handle_t in extras/drm/shared-core/drm.h to unsigned int and see if it
>>all works..
>
> I've set DRMSrcDir in my host.def to point to the CVS
> drm tree:
>
> #define DRMSrcDir /usr/local/src/fdo/drm
>
> And I've deleted extras/drm/shared-core/drm.h just in case.
> I made sure xc is getting drm.h from the CVS drm tree by
> adding a "#warning" line there.
Well, I've just found out that some directories such as
lib/GL/glx and lib/XvMC/hw/i810 still fetch drm.h from
$(DRMSRCDIR)/drm/shared instead of $(DRMSRCDIR)/drm/shared-core.
That's an old copy of drm.h with drm_handle_t still defined
to unsigned long. Is that right?
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
More information about the xorg
mailing list