View Full Version : GLSL compile error ? [GSA not supporting...]
GLpeon
05-17-2011, 12:51 PM
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.
GLpeon
05-17-2011, 12:57 PM
Just in case min/max was a reserved word, I tried this, and got the same results. :(
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...
Alfonse Reinheart
05-17-2011, 01:14 PM
What is GSA?
GLpeon
05-17-2011, 01:17 PM
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:
frank li
05-18-2011, 08:56 PM
It's strange I can't reproduce it. Could you please tell me your configuration? Thanks.
GLpeon
05-18-2011, 09:17 PM
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
frank li
05-19-2011, 08:20 PM
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.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.