[Bug 108109] [GLSL] no-overloads.vert fails
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Oct 1 14:01:12 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=108109
Bug ID: 108109
Summary: [GLSL] no-overloads.vert fails
Product: Mesa
Version: 18.2
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: glsl-compiler
Assignee: mesa-dev at lists.freedesktop.org
Reporter: vadym.shovkoplias at globallogic.com
QA Contact: intel-3d-bugs at lists.freedesktop.org
# ./bin/glslparsertest
tests/spec/arb_shader_subroutine/linker/no-overloads.vert fail 1.50
--check-link
Successfully compiled and linked vertex shader
tests/spec/arb_shader_subroutine/linker/no-overloads.vert: (no compiler output)
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.50
// require_extensions: GL_ARB_shader_subroutine
// check_link: true
// [end config]
#version 150
#extension GL_ARB_shader_subroutine: require
subroutine void func_type();
/* A program will fail to link if any shader contains two or more
* functions with the same name, at least one of which is associated
* with a subroutine type.
*/
subroutine (func_type) void f() {}
void f(int x) {}
void main() {}
PIGLIT: {"result": "fail" }
Accordingly to GLSL spec 4.0 this test shouldn't fail:
Section 6.1.2 Subroutines:
"A program will fail to compile or link if any shader
or stage contains two or more functions with the same
name if the name is associated with a subroutine type."
--
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20181001/8765b31b/attachment.html>
More information about the intel-3d-bugs
mailing list