Bug 71821 - [SNB/IVB/HSW]Piglit glx_GLX_ARB_create_context_robustness_require_GL_ARB_robustness aborted with mesa 10.0 and -fixes kernel
Summary: [SNB/IVB/HSW]Piglit glx_GLX_ARB_create_context_robustness_require_GL_ARB_robu...
Status: VERIFIED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: Ian Romanick
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-20 06:47 UTC by lu hua
Modified: 2013-12-02 02:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description lu hua 2013-11-20 06:47:31 UTC
System Environment:
--------------------------
Platform: Sandybridge/Ivybridge/Haswell
Libdrm:		(master)libdrm-2.4.48
Mesa:		(10.0)3fd32619d7143ed7db21fa402d38e681520f82c2
Xserver:	(server-1.14-branch)xorg-server-1.14.4-30-g384588bd8408d50b1b29b174af75c7b1cd3ff60d
Xf86_video_intel:(master)2.99.906-7-g6e9a8c5ae2883ca21d117ac672dd8a55b3429dc1
Cairo:		(master)31eff5c6eb57ad379689748fd8c60a5ffe0ba481
Libva:		(master)73a11b3e249da35ede92560eb089239252721351
Libva_intel_driver:(master)46c490188fee9d717db1ad526265e0dc1b09d91d
Kernel:	(drm-intel-fixes) cd66407810869709e0d6764409137d48c6812cfc

Bug detailed description:
-------------------------
It aborted on Sandybridge/Ivybridge/Haswell with mesa 10.0 and -fixes kernel.
Run it on master, 9.2 and 10.0 with -queued, -fixed and -nightly kernel,the result is as below:
	-queued	-fix	-nightly
9.2	skip	skip	skip
10	pass	aborted	pass
master	skip	skip	skip

Following cases fail on -fixes kernel and mesa 10.0 branch.
glx_GLX_ARB_create_context_robustness_invalid_reset_notification_strategy
spec_ARB_provoking_vertex_arb-quads-follow-provoking-vertex
spec_ARB_viewport_array_minmax
spec_glsl-1.50_compiler_layout-vs-no-input.vert
spec_glsl-1.50_compiler_layout-vs-no-output.vert
spec_glsl-1.50_compiler_vs-redeclares-pervertex-out-after-global-redeclaration.vert
spec_glsl-1.50_compiler_vs-redeclares-pervertex-out-after-other-global-redeclaration.vert
spec_glsl-1.50_compiler_vs-redeclares-pervertex-out-before-global-redeclaration.vert
spec_glsl-1.50_execution_geometry_primitive-types_GL_LINE_LOOP
spec_OpenGL_3.2_layered-rendering_clear-color
spec_OpenGL_3.2_layered-rendering_clear-depth
spec_OpenGL_3.2_layered-rendering_framebuffer-layered-attachments
spec_OpenGL_3.2_layered-rendering_framebuffertexture
spec_OpenGL_3.2_layered-rendering_framebuffertexture-defaults
spec_OpenGL_3.2_layered-rendering_gl-layer-cube-map
spec_OpenGL_3.2_layered-rendering_gl-layer-render
spec_OpenGL_3.2_texture-border-deprecated

output:
Could not create OpenGL 3.0 context.
flags = 0x00000004, reset notification strategy = 0x8261
glx-create-context-require-robustness: main/context.c:1526: _mesa_make_current: Assertion `newCtx->Version > 0' failed.
Aborted (core dumped)

(gdb) bt
#0  0x000000372a035819 in raise () from /usr/lib64/libc.so.6
#1  0x000000372a036f28 in abort () from /usr/lib64/libc.so.6
#2  0x000000372a02e7f6 in __assert_fail_base () from /usr/lib64/libc.so.6
#3  0x000000372a02e8a2 in __assert_fail () from /usr/lib64/libc.so.6
#4  0x00007ffff45f0160 in _mesa_make_current (newCtx=newCtx@entry=0x7ffff4530040, drawBuffer=drawBuffer@entry=0x0, readBuffer=readBuffer@entry=0x0) at main/context.c:1526
#5  0x00007ffff47595b6 in _mesa_meta_free (ctx=ctx@entry=0x7ffff4530040) at drivers/common/meta.c:447
#6  0x00007ffff4862871 in intelDestroyContext (driContextPriv=driContextPriv@entry=0x612230) at brw_context.c:825
#7  0x00007ffff4863626 in brwCreateContext (api=API_OPENGL_COMPAT, mesaVis=<optimized out>, driContextPriv=0x612230, major_version=<optimized out>,
    minor_version=<optimized out>, flags=0, notify_reset=true, dri_ctx_error=0x7fffffffe0ac, sharedContextPrivate=0x0) at brw_context.c:727
#8  0x00007ffff48093ff in driCreateContextAttribs (screen=0x618cf0, api=<optimized out>, config=0x61a1c0, shared=<optimized out>, num_attribs=<optimized out>,
    attribs=<optimized out>, error=0x7fffffffe0ac, data=0x612090) at dri_util.c:432
#9  0x00007ffff7a76bfa in dri2_create_context_attribs (base=0x611990, config_base=0x61e760, shareList=<optimized out>, num_attribs=<optimized out>, attribs=<optimized out>,
    error=0x7fffffffe0ac) at dri2_glx.c:312
#10 0x00007ffff7a484a6 in glXCreateContextAttribsARB (dpy=0x603010, config=0x61e760, share_context=0x0, direct=1, attrib_list=0x7fffffffe110) at create_context.c:78
#11 0x00000000004012ca in try_context (reset_strategy=33362, flags=0) at /GFX/Test/Piglit/piglit/tests/spec/glx_arb_create_context/require-robustness.c:43
#12 0x00000000004014e8 in main (argc=3, argv=0x7fffffffe278) at /GFX/Test/Piglit/piglit/tests/spec/glx_arb_create_context/require-robustness.c:127

Reproduce steps:
-------------------------
1. xinit
2. ./bin/glx-create-context-require-robustness -auto -fbo
Comment 1 Gordon Jin 2013-11-20 07:10:33 UTC
How about 3.12 kernel? Is the behavior the same as with -fixes?
Comment 2 lu hua 2013-11-21 08:09:44 UTC
(In reply to comment #1)
> How about 3.12 kernel? Is the behavior the same as with -fixes?

It has same result on 3.12 kernel.
	        master	9.2	  10.0
3.12 kernel	skip	aborted	  skip
Comment 3 Ian Romanick 2013-11-27 00:13:57 UTC
This should be fixed on master by the commit listed below.  This will be cherry picked to 10.0 shortly.

commit 73e9aa9e3f73d69ce4f0b68e74702d67842a230c
Author: Ian Romanick <ian.d.romanick@intel.com>
Date:   Wed Nov 20 09:09:50 2013 -0800

    dri: Allow __DRI_CTX_FLAG_ROBUST_BUFFER_ACCESS in driCreateContextAttribs
    
    Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
    Reported-by: Zhenyu Wang <zhenyuw@linux.intel.com>
    Reviewed-by: Matt Turner <mattst88@gmail.com>
    Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
    Cc: "10.0" <mesa-stable@lists.freedesktop.org>
Comment 4 lu hua 2013-12-02 02:41:10 UTC
Verified.Fixed.


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.