#version 120<br><br>// Repro requirements to fail on intel<br>// 1. texture array uniform inside a struct<br>// 2. array passed to function where it is indexed<br><br>struct Structure {<br> sampler2D textures[6]; <br>};<br>uniform Structure u_data;<br><br>float sample(in sampler2D array[6], in vec2 texcoord) {<br> return texture2D(array[0], texcoord).x;<br>}<br><br>void main() {<br> float s = sample(u_data.textures, vec2(0.0));<br> gl_FragColor = vec4( s );<br>}
If I index the array directly in the main method or if I move the uniform textures out from the structure and use it the linking passes. So this seems to be a combination of GLSL language features that provokes the crash.
Please make sure you run Windows update and your BIOS is up to date (contact your system manufacturer).
Also, in order to have more information about your system, please download, install and run Intel® System Support Utility for Windows. Make sure you check “Everything” before you scan, then save the report and attach it to your response.
Hi, sorry for the delay. But I managed to install the new driver as per your instructions. This is still an issue on that driver. You can find the report you requested attached to this message.
We received your files and tried to replicate the issue in our lab. However, we have different results.
Since we were able to get the output “Compile sucessful, linking… Test Program Linked sucessfully!”, according to the information you provided, it means that it worked for us.
We will send an email with some more information. We highly recommend checking with the app developers. Please note that this case will no longer be monitored by Intel.
We have a workaround for this implemented in our application, the repro app basically uses the same code above with some of our setup libs to reproduce this (not in your lab it seems though).
For anyone interested, the workaround is not passing the array sampler as function parameter:
float sample(<br> in sampler2D tex0, <br> in sampler2D tex1, <br> in sampler2D tex2, <br> in sampler2D tex3, <br> in sampler2D tex4, <br> in sampler2D tex5, <br> in vec2 texcoord) {<br> // sample the 6 textures here<br>}<br><br>void main() {<br> float s = sample(<br> u_data.textures[0],<br> u_data.textures[1],<br> u_data.textures[2],<br> u_data.textures[3],<br> u_data.textures[4],<br> u_data.textures[5], <br> vec2(0.0));<br> gl_FragColor = vec4( s );<br>}