- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Moved discussion to Intel Developer Zone - Developing Games & Graphics on Intel
[https://software.intel.com/en-us/forums/developing-games-and-graphics-on-intel/topic/607206 https://software.intel.com/en-us/forums/developing-games-and-graphics-on-intel/topic/607206]
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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));- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Moved discussion to Intel Developer Zone - Developing Games & Graphics on Intel
[https://software.intel.com/en-us/forums/developing-games-and-graphics-on-intel/topic/607206 https://software.intel.com/en-us/forums/developing-games-and-graphics-on-intel/topic/607206]
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page