Developing Games on Intel Graphics
If you are gaming on graphics integrated in your Intel Processor, this is the place for you! Find answers to your questions or post your issues with PC games

GLSL front-end rejects valid negation of vector

Alastair_D_1
Beginner
548 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).

 

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
548 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

0 Kudos
Reply