Results for spec/glsl-1.50/compiler/interface-blocks-structs-defined-within-block-instanced.vert

Overview

Result: fail

Back to summary

Details

Detail Value
Returncode 1
Time 0.0538549423218
Info
Returncode: 1

Errors:
Mesa warning: couldn't open libtxc_dxtn.so, software DXTn compression/decompression unavailable
Successfully compiled and linked vertex shader tests/spec/glsl-1.50/compiler/interface-blocks-structs-defined-within-block-instanced.vert: 


Output:
Shader source:
// [config]
// expect_result: fail
// glsl_version: 1.50
// check_link: true
// [end config]
//
// Tests that a struct cannot be defined within a block.
//
// GLSLangSpec.1.50.11, 4.3.7 Interface Blocks:
// "structure definitions cannot be nested inside a block"

#version 150

out block {
	struct test_struct {
		int a;
		float b;
	} c;
	float d;
} inst;

void main()
{
	inst.c.b = 1.0;
	inst.d = 2.0;
}

Command /home/airlied/devel/xorg/piglit/bin/glslparsertest tests/spec/glsl-1.50/compiler/interface-blocks-structs-defined-within-block-instanced.vert fail 1.50 --check-link
Traceback
None
dmesg

        

Back to summary