https://bugs.freedesktop.org/show_bug.cgi?id=108340
--- Comment #3 from wietse.jorissen@gmail.com --- Created attachment 142915 --> https://bugs.freedesktop.org/attachment.cgi?id=142915&action=edit Recurring error in trace file replay in qapitrace
I've now installed qapitrace (sudo apt-get install apitrace-gui) and can now look into what errors are being listed after I replay the trace therein.
Then I tried delving deeper into the error messages and think I may have at least found something relevant. But I'm quite out of my element here.
In the attached screenshot, you can see it lists 4 errors regarding "array index must be a scalar". These errors seem to refer to a glShaderSource call for a GL_FRAGMENT_SHADER, shader string 0, at lines 65,98,99 and 100.
What these four lines have in common is that they all use the same value to address a certain index in an array:
ivec4(u_xlati12)
For line 65 it's unity_Builtins0Array and for 98,99 and 100 it's unity_Builtins0Array.
So now the question is, what is the value of ivec4(u_xlati12) and what generates it, to find out what is causing it.
The error is repeated quite often, and it's always that index.
The fact that I can also see variables named _OcclusionStrength and _OcclusionMap at least makes me think I'm looking in the right direction.