Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Alastair_D_1
Beginner
96 Views

GLSL front-end rejects valid negation of vector

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).

 

I have attached the example (as a .txt file).

 

I believe this is a bug - can you reproduce it?

 

Thanks

 

Ally

 

(Note: I also posted the issue here: https://communities.intel.com/message/368067 but was advised that this forum would be a more suitable place.)

0 Kudos
1 Reply
Michael_C_Intel2
Employee
96 Views

Hi Alastair,

It is indeed the more suitable place for this. We have a ticket filed and the OpenGL driver team is investigating. I will update you with details once we have made some headway.

-Michael

Reply