http://bugs.freedesktop.org/show_bug.cgi?id=27403
Summary: GLSL struct causing "Invalid src register file ..." error Product: Mesa Version: 7.6 Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal Priority: medium Component: Mesa core AssignedTo: mesa3d-dev@lists.sourceforge.net ReportedBy: brian.h...@gmail.com GLSL fragment shader is producing this error: Mesa 7.7.1 implementation error: Invalid src register file 12 in get_src_register_pointer() Please report at bugzilla.freedesktop.org I've reduced the code down as much as I could while still reproducing the bug: --- shader.frag -------------- uniform sampler3D volShadSampler0; struct VolShad { sampler3D texture; int samples; int channels; mat4 worldToScreen; }; vec3 testfunc(VolShad vs, vec3 p) { return vec3(1.0, 1.0, 1.0); } void main() { // (Initializing the VolShad struct this way also causes the error) //VolShad volShad0 = VolShad(volShadSampler0, 8, 3, mat4(0.987538, 0.911446, 0.626908, 0.626908, 0, 2.20361, -0.496881, -0.49688, 1.03169, -0.872442, -0.600081, -0.600081, -47.4917, 35.4831, 75.2649, 75.3648)); VolShad volShad0; volShad0.texture = volShadSampler0; volShad0.texture = 8; volShad0.channels = 3; volShad0.worldToScreen = mat4(0.987538, 0.911446, 0.626908, 0.626908, 0, 2.20361, -0.496881, -0.49688, 1.03169, -0.872442, -0.600081, -0.600081, -47.4917, 35.4831, 75.2649, 75.3648); vec3 outputColor = testfunc(volShad0, vec3(1, 1, 1)); gl_FragColor = vec4(1, 1, 1, 1); } -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev