Initialize DRI2 info rec version 4 list of driver names
PATCH 1/1 Initialize DRI2 info rec version 4 list of driver names
With DRI2 supporting multiple subsystems, the video driver must initialize the list of driver names instead of just passing the single driver name used by Mesa. Without this, the X server will fail to initialize DRI2 as the numDrivers field in this structure will be uninitialized.
--- src/i830_dri.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
src/i830_dri.c +7 -0
@@ -865,6 +865,9 @@ Bool I830DRI2ScreenInit(ScreenPtr screen)int dri2_major =1 ;int dri2_minor =0 ;#endif +#if DRI2INFOREC_VERSION >=4 +const char *driverNames[1 ]; +#endif #ifdef USE_DRI2_1_1_0 if (xf86LoaderCheckSymbol ("DRI2Version" )) {
@@ -879,6 +882,7 @@ Bool I830DRI2ScreenInit(ScreenPtr screen)#endif intel->deviceName =drmGetDeviceNameFromFd (intel->drmSubFD); +memset (&info,'\0' ,sizeof (info)); info.fd = intel->drmSubFD; info.driverName =IS_I965G (intel) ?"i965" :"i915" ; info.deviceName = intel->deviceName;
@@ -907,6 +911,9 @@ Bool I830DRI2ScreenInit(ScreenPtr screen) info.ScheduleSwap = I830DRI2ScheduleSwap; info.GetMSC = I830DRI2GetMSC; info.ScheduleWaitMSC = I830DRI2ScheduleWaitMSC; + info.numDrivers =1 ; + info.driverNames = driverNames; + driverNames[0 ] = info.driverName;#endif return DRI2ScreenInit (screen, &info);
Signature · 10 lines
1.6.6.1 ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com --
Quoted 6 lines · Keith Packard
With DRI2 supporting multiple subsystems, the video driver must initialize the list of driver names instead of just passing the single driver name used by Mesa. Without this, the X server will fail to initialize DRI2 as the numDrivers field in this structure will be uninitialized.
Please push this, I've met this too and fixed it locally, without this X crashed for me in start up.
Quoted 44 lines
Signed-off-by Keith Packard <[email protected]>--- src/i830_dri.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)src/i830_dri.c +7
-0@@ -865,6 +865,9 @@ Bool I830DRI2ScreenInit(ScreenPtr screen)int dri2_major =1 ;int dri2_minor =0 ;#endif +#if DRI2INFOREC_VERSION >=4 +const char *driverNames[1 ]; +#endif #ifdef USE_DRI2_1_1_0 if (xf86LoaderCheckSymbol ("DRI2Version" )) {@@ -879,6 +882,7 @@ Bool I830DRI2ScreenInit(ScreenPtr screen)#endif intel->deviceName =drmGetDeviceNameFromFd (intel->drmSubFD); +memset (&info,'\0' ,sizeof (info)); info.fd = intel->drmSubFD; info.driverName =IS_I965G (intel) ?"i965" :"i915" ; info.deviceName = intel->deviceName;@@ -907,6 +911,9 @@ Bool I830DRI2ScreenInit(ScreenPtr screen) info.ScheduleSwap = I830DRI2ScheduleSwap; info.GetMSC = I830DRI2GetMSC; info.ScheduleWaitMSC = I830DRI2ScheduleWaitMSC; + info.numDrivers =1 ; + info.driverNames = driverNames; + driverNames[0 ] = info.driverName;#endif return DRI2ScreenInit (screen, &info);Signature · 6 lines
1.6.6.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel