e5ae745c80
Please note that the previous version is still available in x11/modular-xorg-server112 in case this version does not work for you. This is relevant for users who need DRI1 and/or XAA as those features have been deprecated and removed by upstream since xorg-server-1.13. Note also that this update breaks the driver ABI and that drivers will be need to be rebuilt. Summary of the important changes since 1.12: xorg-server-1.17 (4 February 2015) - Generic DRM/KMS driver xf86-video-modesetting xorg-server-1.16 (17 July 2014) - XWayland DDX - GLAMOR acceleration - non-PCI devices support - systemd-logind support (rootless X) xorg-server1.15 (27 December 2013) - DRI3 - "present" extension xorg-server-1.14 (5 March 2013) - XInput 2.3 xorg-server1.13 (5 September 2012) - New DDX driver API - DRI2 - RandR 1.4 - OpenGL 3.x+ contexts - XAA support removed
40 lines
1.3 KiB
C
40 lines
1.3 KiB
C
$NetBSD: patch-hw_xfree86_dri2_dri2.c,v 1.2 2015/04/25 11:47:03 tnn Exp $
|
|
|
|
Fix uninitialized variables warning from clang (X crashes without this)
|
|
|
|
dri2.c:242:27: note: initialize the variable 'ref' to silence this warning
|
|
DRI2DrawableRefPtr ref;
|
|
dri2.c:320:27: note: initialize the variable 'ref' to silence this warning
|
|
DRI2DrawableRefPtr ref, next;
|
|
dri2.c:601:27: note: initialize the variable 'ref' to silence this warning
|
|
DRI2DrawableRefPtr ref;
|
|
|
|
--- hw/xfree86/dri2/dri2.c.orig 2015-01-26 18:42:23.000000000 +0000
|
|
+++ hw/xfree86/dri2/dri2.c
|
|
@@ -279,7 +279,7 @@ typedef struct DRI2DrawableRefRec {
|
|
static DRI2DrawableRefPtr
|
|
DRI2LookupDrawableRef(DRI2DrawablePtr pPriv, XID id)
|
|
{
|
|
- DRI2DrawableRefPtr ref;
|
|
+ DRI2DrawableRefPtr ref = NULL;
|
|
|
|
xorg_list_for_each_entry(ref, &pPriv->reference_list, link) {
|
|
if (ref->id == id)
|
|
@@ -359,7 +359,7 @@ static int
|
|
DRI2DrawableGone(void *p, XID id)
|
|
{
|
|
DRI2DrawablePtr pPriv = p;
|
|
- DRI2DrawableRefPtr ref, next;
|
|
+ DRI2DrawableRefPtr ref = NULL, next;
|
|
WindowPtr pWin;
|
|
PixmapPtr pPixmap;
|
|
DrawablePtr pDraw;
|
|
@@ -676,7 +676,7 @@ static void
|
|
DRI2InvalidateDrawable(DrawablePtr pDraw)
|
|
{
|
|
DRI2DrawablePtr pPriv = DRI2GetDrawable(pDraw);
|
|
- DRI2DrawableRefPtr ref;
|
|
+ DRI2DrawableRefPtr ref = NULL;
|
|
|
|
if (!pPriv || !pPriv->needInvalidate)
|
|
return;
|