Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111172 - xf86-video-via-1.31.1-r1: via_dri.h from via driver and Mesa-6.3.2 from x11-base/xorg-server-0.99.2-r1 are not in sync
Summary: xf86-video-via-1.31.1-r1: via_dri.h from via driver and Mesa-6.3.2 from x11-b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 112004
  Show dependency tree
 
Reported: 2005-11-01 10:58 UTC by Thomas Meyer
Modified: 2005-11-12 09:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Meyer 2005-11-01 10:58:25 UTC
xf86-video-via-1.31.1-r1: via_dri.h from via driver and Mesa-6.3.2 from
x11-base/xorg-server-0.99.2-r1 are not in sync.

Structure VIADRIRec:
See xorg-server: Mesa-6.3.2/src/mesa/drivers/dri/unichrome/via_dri.h and
xf86-video-via: src/via_dri.h

Both struturces differ in "Bool drixinerama;" and "char drixinerama;"
This leads to the error in Mesa-> viaInitDriver: "ERROR!  sizeof(VIADRIRec) does
not match passed size from device driver".



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Thomas Meyer 2005-11-01 12:58:02 UTC
acutally my last post wasn't true. the difference between both structures lies
in the definition of the structure: viaRegion which is for 
- mesa:

typedef struct {
    drm_handle_t handle;
    drmSize size;
    drmAddress map;
} viaRegion, *viaRegionPtr;

and for xf86-video-via:
typedef struct {
    drm_handle_t handle;
    drmSize size;
} viaRegion, *viaRegionPtr;

Comment 2 Thomas Meyer 2005-11-12 09:21:19 UTC
MesaLib 6.4 from xorg-server-0.99.3 has the file
./src/mesa/drivers/dri/unichrome/server/via_dri.h
which defines 

typedef struct {
    drm_handle_t handle;
    drmSize size;
} viaRegion, *viaRegionPtr;

structures are in sync again.