Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
20597 Discussions

GLSL compiler rejects valid input program

ADona4
Beginner
1,776 Views

I find that the following (valid) piece of GLSL is rejected by then Intel GLSL front-end:

# version 150

void foo() {

vec4 temp = -(mat3x4(0.0)*vec3(0.0));

}

I get this error:

ERROR: 0:4: '' : unary '-' not allowed for provided data type

Interestingly, if I rewrite the code like this:

# version 150

void foo() {

vec4 temp = (mat3x4(0.0)*vec3(0.0));

temp = -temp;

}

then it is accepted by the front end.

I have an Intel(R) HD Graphics 520 GPU, and I am running driver version 20.19.15.4326 (18/11/2015).

Can others reproduce this, and do you agree that it is a compiler bug?

0 Kudos
1 Solution
3 Replies
Stefan3D
Honored Contributor II
619 Views

I can confirm that with HD5500/v4364

NVIDIA compiler accepts it (it's sloppier in general)

Try this:

vec4 temp = -1.0 * (mat3x4(0.0)*vec3(0.0));
0 Kudos
ADona4
Beginner
619 Views

Thanks for confirming that you can reproduce this.

Even if the NVIDIA compiler is sloppier in general, it seems that the Intel compiler is wrong in this instance, agreed?

0 Kudos
Reply