Bug 92940 - [HSW, bisected][GLES 31 CTS][Regression] ES31-CTS.gtf.GL31Tests.shader_helper.shader_helper - segfault/assert
Summary: [HSW, bisected][GLES 31 CTS][Regression] ES31-CTS.gtf.GL31Tests.shader_helper...
Status: VERIFIED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: 11.0
Hardware: Other All
: medium critical
Assignee: Matt Turner
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-13 13:38 UTC by Marta Löfstedt
Modified: 2015-11-23 16:09 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Marta Löfstedt 2015-11-13 13:38:27 UTC
Software versions:
    4.3.0-rc3
    OpenGL version string: 3.0 Mesa 11.1.0-devel (git-a29d922)

GPU hardware:
    OpenGL renderer string: Mesa DRI Intel(R) Haswell Desktop 
    00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)

CPU hardware:
    x86_64
    Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Khronos CTS version:
git@29e4891ef6

command:
./glcts --deqp-case=ES31-CTS.gtf.GL31Tests.shader_helper.shader_helper

Environment:
Mesa built with: --enable-debug
export MESA_GLES_VERSION_OVERRIDE=3.1
export MESA_EXTENSION_OVERRIDE=GL_ARB_compute_shader
-----------------------------------------------------

With debug build the ES31-CTS.gtf.GL31Tests.shader_helper.shader_helper asserts with:
glcts: nir/nir.c:1569: nir_intrinsic_from_system_value: Assertion `!"system value does not directly correspond to intrinsic"' failed.
Aborted (core dumped)
On a build without debug the test segfaults. 
This issue is blocking OpenGL ES 3.1 conformance testing.

The regression was bisected to the following commit:

commit 20748318c5b870fc27f699637041e67a67321f5f
Author: Ilia Mirkin <imirkin@alum.mit.edu>
Date:   Mon Sep 14 16:13:43 2015 -0400

    glsl: add gl_HelperInvocation system value
    
    Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
    Reviewed-by: Matt Turner <mattst88@gmail.com>
Comment 1 Matt Turner 2015-11-13 19:45:54 UTC
I'm planning to implement the i965 backend portion of this.
Comment 2 Marta Löfstedt 2015-11-23 12:11:05 UTC
This issue is no longer reproducible with mesa git@2010de4015c96f241e81012b395cb4254091f0bb
Comment 3 Matt Turner 2015-11-23 16:09:01 UTC
Right, I pushed the patches ending with

commit c875e3cdd21811ad6669160d59fa39a4526ef872
Author: Matt Turner <mattst88@gmail.com>
Date:   Fri Nov 13 17:51:12 2015 -0800

    i965/fs: Add support for gl_HelperInvocation system value.


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.