GLSL compile error ? [GSA not supporting...]

fragment shader

#version 120

struct TerrainRegion
{
float min;
float max;
};

uniform TerrainRegion region1;
uniform TerrainRegion region2;

Results in:

Internal compilation failure. Possibly caused by GSA not supporting a GLSL feature used in shader.

ERROR: 0:8: error(#132) Syntax error: ‘;’ parse error
ERROR: error(#273) 1 compilation errors. No code generated

Is this a driver bug in cat 11.5 drivers ?
The error is where I used red text.

Just in case min/max was a reserved word, I tried this, and got the same results. :frowning:

struct TerrainRegionz
{
float zmin;
float zmax;
};

uniform TerrainRegionz region1;
uniform TerrainRegionz region2;

Internal compilation failure. Possibly caused by GSA not supporting a GLSL feature used in shader.

ERROR: 0:7: error(#132) Syntax error: ‘;’ parse error
ERROR: error(#273) 1 compilation errors. No code generated

Looking at http://www.opengl.org/wiki/GLSL_Uniform it should work…

What is GSA?

GPU ShaderAnalyzer … was trying to debug a shader, and used this tool for verification.

http://developer.amd.com/gpu/shader/pages/default.aspx

There has to be a easier way to debug these things… :sorrow:

It’s strange I can’t reproduce it. Could you please tell me your configuration? Thanks.

This is on Vista 64bit, 6870, Cat 11.5 drivers.
GPU ShaderAnalyzer 1.56.2720

It’s better you could send me the screenshot on your GSA result. You could contact me by frank.li@amd.com. Thanks very much.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.