Bug 99038

Summary: [dEQP, EGL, SKL, BDW, BSW] dEQP-EGL.functional.negative_api.create_pixmap_surface crashes
Product: Mesa Reporter: Mark Janes <mark.a.janes>
Component: Drivers/DRI/i965Assignee: Tapani Pälli <lemody>
Status: RESOLVED FIXED QA Contact: Intel 3D Bugs Mailing List <intel-3d-bugs>
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 98315    

Description Mark Janes 2016-12-09 22:23:58 UTC
The same is true for dEQP-EGL.functional.negative_api.create_window_surface
Comment 1 Kenneth Graunke 2016-12-12 06:49:57 UTC
Works for me...
Comment 2 Tapani Pälli 2016-12-12 07:48:30 UTC
These are passing for me, are you dEQP running against x11_egl or some other target?
Comment 3 Chad Versace 2016-12-13 22:40:43 UTC
They crash for me when using DEQP_TARGET=x11_egl.

I posted a fix to mesa-dev:

From: Chad Versace <chadversary@chromium.org>
To: mesa-dev@lists.freedesktop.org
Subject: [PATCH] egl: Fix crashes in eglCreate*Surface()
Date: Tue, 13 Dec 2016 14:40:07 -0800
Message-Id: <20161213224007.106998-1-chadversary@chromium.org>
Comment 4 Tapani Pälli 2016-12-15 08:46:48 UTC
Fixed by

--- 8< ---
commit 5e97b8f5ce975dfb66cc46e6b4cc1e89eb8c1dc0
Author: Chad Versace <chadversary@chromium.org>
Date:   Tue Dec 13 14:23:55 2016 -0800

    egl: Fix crashes in eglCreate*Surface()
    
    Don't dereference a null EGLDisplay.
    
    Fixes tests
      dEQP-EGL.functional.negative_api.create_pbuffer_surface
      dEQP-EGL.functional.negative_api.create_pixmap_surface
    
    Reviewed-by: Mark Janes <mark.a.janes@intel.com>
    Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=99038
    Cc: "13.0" <mesa-stable@lists.freedesktop.org>

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.