Re: [Mesa-dev] [PATCH] egl_dri2: Fix segmentation fault

2012-08-23 Thread Brian Paul
On 08/22/2012 05:15 PM, Paulo Alcantara wrote: From: Paulo Alcantara Date: Fri, 17 Aug 2012 14:08:10 -0300 The segmentation fault occurs when DRI2 is not loaded up and dri2_setup_screen() function deferences dri2_dpy->dri2 (since it's NULL at this point). This patch fixes the segmentation faul

Re: [Mesa-dev] [PATCH] egl_dri2: Fix segmentation fault

2012-08-22 Thread Paulo Alcantara
From: Paulo Alcantara Date: Fri, 17 Aug 2012 14:08:10 -0300 > The segmentation fault occurs when DRI2 is not loaded up and > dri2_setup_screen() function deferences dri2_dpy->dri2 (since it's NULL > at this point). > > This patch fixes the segmentation fault by checking if dri2 pointer is > not

Re: [Mesa-dev] [PATCH] egl_dri2: Fix segmentation fault

2012-08-20 Thread Ian Romanick
On 08/18/2012 12:44 AM, Tomeu Vizoso wrote: On Sat, Aug 18, 2012 at 5:20 AM, Ian Romanick wrote: On 08/17/2012 10:08 AM, Paulo Alcantara wrote: The segmentation fault occurs when DRI2 is not loaded up and dri2_setup_screen() function deferences dri2_dpy->dri2 (since it's NULL at this point).

Re: [Mesa-dev] [PATCH] egl_dri2: Fix segmentation fault

2012-08-18 Thread Paulo Alcantara
Hi Ian, From: Ian Romanick Date: Fri, 17 Aug 2012 20:20:30 -0700 > On 08/17/2012 10:08 AM, Paulo Alcantara wrote: > > The segmentation fault occurs when DRI2 is not loaded up and > > dri2_setup_screen() function deferences dri2_dpy->dri2 (since it's > > NULL > > at this point). > > > > This patc

Re: [Mesa-dev] [PATCH] egl_dri2: Fix segmentation fault

2012-08-18 Thread Tomeu Vizoso
On Sat, Aug 18, 2012 at 5:20 AM, Ian Romanick wrote: > On 08/17/2012 10:08 AM, Paulo Alcantara wrote: >> >> The segmentation fault occurs when DRI2 is not loaded up and >> dri2_setup_screen() function deferences dri2_dpy->dri2 (since it's NULL >> at this point). >> >> This patch fixes the segmenta

Re: [Mesa-dev] [PATCH] egl_dri2: Fix segmentation fault

2012-08-17 Thread Ian Romanick
On 08/17/2012 10:08 AM, Paulo Alcantara wrote: The segmentation fault occurs when DRI2 is not loaded up and dri2_setup_screen() function deferences dri2_dpy->dri2 (since it's NULL at this point). This patch fixes the segmentation fault by checking if dri2 pointer is not NULL before deferencing i

[Mesa-dev] [PATCH] egl_dri2: Fix segmentation fault

2012-08-17 Thread Paulo Alcantara
The segmentation fault occurs when DRI2 is not loaded up and dri2_setup_screen() function deferences dri2_dpy->dri2 (since it's NULL at this point). This patch fixes the segmentation fault by checking if dri2 pointer is not NULL before deferencing it. Signed-off-by: Paulo Alcantara --- src/egl/