File: named-interface-block-redeclared-same-block-name.vert

package info (click to toggle)
piglit 0~git20220119-124bca3c9-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 109,012 kB
  • sloc: ansic: 273,511; xml: 46,666; python: 33,098; lisp: 20,392; cpp: 12,480; sh: 22; makefile: 22; pascal: 5
file content (36 lines) | stat: -rw-r--r-- 957 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// [config]
// expect_result: fail
// glsl_version: 1.50
// check_link: false
// [end config]
//
// From section 4.1.9 (Arrays) of the GLSL 4.40 spec (as of revision 7):
//
//     However, unless noted otherwise, blocks cannot be redeclared;
//     an unsized array in a user-declared block cannot be sized
//     through redeclaration.
//
// The only place where the spec notes that interface blocks can be
// redeclared is to allow for redeclaration of built-in interface
// blocks such as gl_PerVertex.  Therefore, user-defined interface
// blocks can never be redeclared.  This is a clarification of
// previous intent (see Khronos bug 10659:
// https://cvs.khronos.org/bugzilla/show_bug.cgi?id=10659), so we test
// it for GLSL version 1.50.
//
// In this test, the named interface block is redeclared using the
// same block name that it had previously.

#version 150

out block {
    vec4 a;
} inst;

out block {
    vec4 a;
} inst;

void main()
{
}