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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

# ./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 assignee for the bug.
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to