[Bug 93722] Segfault when compiling shaders with more than one subroutine uniform
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Jan 14 15:21:34 PST 2016
https://bugs.freedesktop.org/show_bug.cgi?id=93722
Bug ID: 93722
Summary: Segfault when compiling shaders with more than one
subroutine uniform
Product: Mesa
Version: 11.0
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: glsl-compiler
Assignee: idr at freedesktop.org
Reporter: nioko1337 at googlemail.com
QA Contact: intel-3d-bugs at lists.freedesktop.org
The fragment shader in question:
#version 330
#extension GL_ARB_shader_subroutine : require
#extension GL_ARB_explicit_uniform_location : require
out vec4 fragColor;
subroutine vec4 color_t();
subroutine vec4 modify_t(vec4 color);
subroutine uniform color_t Color;
subroutine uniform modify_t Modify;
subroutine(color_t)
vec4 ColorRed()
{
return vec4(1, 0, 0, 1);
}
subroutine(color_t)
vec4 ColorBlue()
{
return vec4(0, 0.4, 1, 1);
}
subroutine(modify_t)
vec4 SwapRB(vec4 color)
{
return vec4(color.b, color.g, color.r, color.a);
}
subroutine(modify_t)
vec4 DeleteR(vec4 color)
{
return vec4(0, color.g, color.b, color.a);
}
void main()
{
vec4 color = Color();
fragColor = Modify(color);
}
Some debug logs I could gather:
[...]
[OpenGL] CreateShader(35632)
[OpenGL] ShaderSource(2, 1, 0x7fff29927210, 0x0)
[OpenGL] CompileShader(2)
An unknown error occurred
dmesg output:
[78197.436774] subroutines[12214]: segfault at 60 ip 00007f9d05705f70 sp
00007fff1f1da118 error 4 in i965_dri.so[7f9d0545c000+5d7000]
Also happens when using llvm renderer:
[78750.763639] subroutines[12766]: segfault at 60 ip 00007f25b4e88230 sp
00007fff299269f8 error 4 in swrast_dri.so[7f25b4bca000+86b000]
This is my first bug report, so I'm not entirely sure if I'm doing this
completely right.
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20160114/f70c488c/attachment.html>
More information about the intel-3d-bugs
mailing list