2009/8/5 Yuval Levy <[email protected]>: > > Hi all > > I just tested the latest SVN on my workstation with the following GPU > (se diagnostic commands and output below) and it fails. Is this my GPU > or do we have a bug in the code? This is on Ubuntu 64bit, and I've even > tried with 9.10 (alpha2) because it has a slightly newer GLEW. > > $ lspci | grep VGA > > 00:05.0 VGA compatible controller: nVidia Corporation C51PV [GeForce > 6150] (rev a2) > > $ glxinfo | grep OpenGL > > OpenGL vendor string: NVIDIA Corporation > OpenGL renderer string: GeForce 6150/PCI/SSE2 > OpenGL version string: 2.1.2 NVIDIA 185.18.14 > OpenGL shading language version string: 1.20 NVIDIA via Cg compiler > OpenGL extensions: > > $ glewinfo | grep GL_ARB > GL_ARB_color_buffer_float: OK > GL_ARB_depth_buffer_float: MISSING > GL_ARB_depth_texture: OK > GL_ARB_draw_buffers: OK > GL_ARB_draw_instanced: OK [MISSING] > GL_ARB_fragment_program: OK > GL_ARB_fragment_program_shadow: OK > GL_ARB_fragment_shader: OK > GL_ARB_framebuffer_object: MISSING [OK] > GL_ARB_framebuffer_sRGB: MISSING > GL_ARB_geometry_shader4: OK [MISSING] > GL_ARB_half_float_pixel: OK > GL_ARB_half_float_vertex: OK > GL_ARB_imaging: OK > GL_ARB_instanced_arrays: MISSING > GL_ARB_map_buffer_range: OK > GL_ARB_matrix_palette: MISSING > GL_ARB_multisample: OK > GL_ARB_multitexture: OK > GL_ARB_occlusion_query: OK > GL_ARB_pixel_buffer_object: OK > GL_ARB_point_parameters: OK > GL_ARB_point_sprite: OK > GL_ARB_shader_objects: OK > GL_ARB_shading_language_100: OK > GL_ARB_shadow: OK > GL_ARB_shadow_ambient: MISSING > GL_ARB_texture_border_clamp: OK > GL_ARB_texture_buffer_object: OK [MISSING] > GL_ARB_texture_compression: OK > GL_ARB_texture_compression_rgtc: MISSING > GL_ARB_texture_cube_map: OK > GL_ARB_texture_env_add: OK > GL_ARB_texture_env_combine: OK > GL_ARB_texture_env_crossbar: MISSING > GL_ARB_texture_env_dot3: OK > GL_ARB_texture_float: OK > GL_ARB_texture_mirrored_repeat: OK > GL_ARB_texture_non_power_of_two: OK > GL_ARB_texture_rectangle: OK > GL_ARB_texture_rg: MISSING > GL_ARB_transpose_matrix: OK > GL_ARB_vertex_array_object: OK > GL_ARB_vertex_blend: MISSING > GL_ARB_vertex_buffer_object: OK > GL_ARB_vertex_program: OK > GL_ARB_vertex_shader: OK > GL_ARB_window_pos: OK > > > and this is what happens when I run nona with -g > > $ nona -g -o testgpu.tif _MG_8768-_MG_8873.pto > nona: using graphics card: NVIDIA Corporation GeForce 6150/PCI/SSE2 > destStart=[1900, 2303] > destEnd=[2804, 5700] > destSize=[(904, 3397)] > srcSize=[(3480, 2314)] > srcBuffer=0x7f4fd4934010 > srcAlphaBuffer=0x7f4fd35cd010 > destBuffer=0x7f4fd406a010 > destAlphaBuffer=0x7f4fd3d7c010 > destGLInternalFormat=GL_RGBA8 > destGLFormat=GL_RGB > destGLType=GL_UNSIGNED_BYTE > srcGLInternalFormat=GL_RGBA8 > srcGLFormat=GL_RGB > srcGLType=GL_UNSIGNED_BYTE > srcAlphaGLType=GL_UNSIGNED_BYTE > destAlphaGLType=GL_UNSIGNED_BYTE > warparound=0 > needsAtanWorkaround=0 > maxTextureSize=4096 > Source chunks: > [(0, 0) to (3480, 2314) = (3480x2314)] > Dest chunks: > [(0, 0) to (904, 1699) = (904x1699)] > [(0, 1699) to (904, 3397) = (904x1698)] > Total GPU memory used: 132001184 > Interpolator chunks: > [(0, 0) to (4, 4) = (4x4)] > [(4, 0) to (8, 4) = (4x4)] > [(8, 0) to (12, 4) = (4x4)] > [(12, 0) to (16, 4) = (4x4)] > [(16, 0) to (20, 4) = (4x4)] > [(20, 0) to (24, 4) = (4x4)] > [(24, 0) to (28, 4) = (4x4)] > [(28, 0) to (32, 4) = (4x4)] > [(0, 4) to (4, 8) = (4x4)] > [(4, 4) to (8, 8) = (4x4)] > [(8, 4) to (12, 8) = (4x4)] > [(12, 4) to (16, 8) = (4x4)] > [(16, 4) to (20, 8) = (4x4)] > [(20, 4) to (24, 8) = (4x4)] > [(24, 4) to (28, 8) = (4x4)] > [(28, 4) to (32, 8) = (4x4)] > [(0, 8) to (4, 12) = (4x4)] > [(4, 8) to (8, 12) = (4x4)] > [(8, 8) to (12, 12) = (4x4)] > [(12, 8) to (16, 12) = (4x4)] > [(16, 8) to (20, 12) = (4x4)] > [(20, 8) to (24, 12) = (4x4)] > [(24, 8) to (28, 12) = (4x4)] > [(28, 8) to (32, 12) = (4x4)] > [(0, 12) to (4, 16) = (4x4)] > [(4, 12) to (8, 16) = (4x4)] > [(8, 12) to (12, 16) = (4x4)] > [(12, 12) to (16, 16) = (4x4)] > [(16, 12) to (20, 16) = (4x4)] > [(20, 12) to (24, 16) = (4x4)] > [(24, 12) to (28, 16) = (4x4)] > [(28, 12) to (32, 16) = (4x4)] > [(0, 16) to (4, 20) = (4x4)] > [(4, 16) to (8, 20) = (4x4)] > [(8, 16) to (12, 20) = (4x4)] > [(12, 16) to (16, 20) = (4x4)] > [(16, 16) to (20, 20) = (4x4)] > [(20, 16) to (24, 20) = (4x4)] > [(24, 16) to (28, 20) = (4x4)] > [(28, 16) to (32, 20) = (4x4)] > [(0, 20) to (4, 24) = (4x4)] > [(4, 20) to (8, 24) = (4x4)] > [(8, 20) to (12, 24) = (4x4)] > [(12, 20) to (16, 24) = (4x4)] > [(16, 20) to (20, 24) = (4x4)] > [(20, 20) to (24, 24) = (4x4)] > [(24, 20) to (28, 24) = (4x4)] > [(28, 20) to (32, 24) = (4x4)] > [(0, 24) to (4, 28) = (4x4)] > [(4, 24) to (8, 28) = (4x4)] > [(8, 24) to (12, 28) = (4x4)] > [(12, 24) to (16, 28) = (4x4)] > [(16, 24) to (20, 28) = (4x4)] > [(20, 24) to (24, 28) = (4x4)] > [(24, 24) to (28, 28) = (4x4)] > [(28, 24) to (32, 28) = (4x4)] > [(0, 28) to (4, 32) = (4x4)] > [(4, 28) to (8, 32) = (4x4)] > [(8, 28) to (12, 32) = (4x4)] > [(12, 28) to (16, 32) = (4x4)] > [(16, 28) to (20, 32) = (4x4)] > [(20, 28) to (24, 32) = (4x4)] > [(24, 28) to (28, 32) = (4x4)] > [(28, 28) to (32, 32) = (4x4)] > #version 110 > #extension GL_ARB_texture_rectangle : enable > uniform sampler2DRect SrcTexture; > float sinh(const in float x) { return (exp(x) - exp(-x)) / 2.0; } > float cosh(const in float x) { return (exp(x) + exp(-x)) / 2.0; } > float atan2_xge0(const in float y, const in float x) { > return atan(y, x); > } > float atan2_safe(const in float y, const in float x) { > return atan(y, x); > } > float atan_safe(const in float yx) { > return atan(yx); > } > void main(void) > { > float discardA = 1.0; > float discardB = 0.0; > vec2 src = gl_TexCoord[0].st; > src -= vec2(9012.0000000000000000, 4506.0000000000000000); > > // rotate_erect(27036.000000000000000, 7570.1936456957173505) > { > src.s += 7570.1936456957173505; > float w = (abs(src.s) > 27036.000000000000000) ? 1.0 : 0.0; > float n = (src.s < 0.0) ? 0.5 : -0.5; > src.s += w * -54072.000000000000000 * ceil(src.s / > 54072.000000000000000 + n); > } > > // sphere_tp_erect(8605.8260828649654286) > { > float phi = src.s / 8605.8260828649654286; > float theta = -src.t / 8605.8260828649654286 + > 1.5707963267948965580; > if (theta < 0.0) { > theta = -theta; > phi += 3.1415926535897931160; > } > if (theta > 3.1415926535897931160) { > theta = 3.1415926535897931160 - (theta - > 3.1415926535897931160); > phi += 3.1415926535897931160; > } > float s = sin(theta); > vec2 v = vec2(s * sin(phi), cos(theta)); > float r = length(v); > theta = 8605.8260828649654286 * atan2_safe(r, s * cos(phi)); > src = v * (theta / r); > } > > // persp_sphere(8605.8260828649654286) > { > mat3 m = mat3(-0.021348969898465505746, > -0.99861950017682066250, -0.047992867708350636646, > 0.99977208476946100024, -0.021324357795218604888, > -0.0010248318628368971190, > 0.0000000000000000000, -0.048003808507433361197, > 0.99884715265589141264); > float r = length(src); > float theta = r / 8605.8260828649654286; > float s = 0.0; > if (r != 0.0) s = sin(theta) / r; > vec3 v = vec3(s * src.s, s * src.t, cos(theta)); > vec3 u = v * m; > r = length(u.st); > theta = 0.0; > if (r != 0.0) theta = 8605.8260828649654286 * atan2_safe(r, > u.p) / r; > src = theta * u.st; > } > > // rect_sphere_tp(8605.8260828649654286) > { > float r = length(src); > float theta = r / 8605.8260828649654286; > float rho = 0.0; > if (theta >= 1.5707963267948965580) rho = 1.6e16; > else if (theta == 0.0) rho = 1.0; > else rho = tan(theta) / theta; > src *= rho; > } > > // resize(0.99565793672523394964, 0.99565793672523394964) > src *= vec2(0.99565793672523394964, 0.99565793672523394964); > > // radial(1.0043634782470169942, 0.0000000000000000000, > -0.0043634782470170496715, 0.0000000000000000000, 1157.0000000000000000, > 8.7592802374617306782) > { > float r = length(src) / 1157.0000000000000000; > float scale = 1000.0; > if (r < 8.7592802374617306782) { > scale = ((0.0000000000000000000 * r + > -0.0043634782470170496715) * r + 0.0000000000000000000) * r + > 1.0043634782470169942; > } > src *= scale; > } > > src += vec2(1736.5000000000000000, 1156.5000000000000000); > > src = src * discardA + vec2(-1000.0, -1000.0) * discardB; > gl_FragColor = vec4(src.s, 0.0, 0.0, src.t); > } > #version 110 > #extension GL_ARB_texture_rectangle : enable > uniform sampler2DRect CoordTexture; > uniform sampler2DRect SrcTexture; > uniform sampler2DRect AccumTexture; > uniform vec2 SrcUL; > uniform vec2 SrcLR; > uniform vec2 KernelUL; > uniform vec2 KernelWH; > float w(const in float i, const in float f) { > float c = (i < 16.000000000000000000) ? 1.0 : -1.0; > float x = c * (15.000000000000000000 - i + f); > vec2 xpi = vec2(x, x / 16.000000000000000000) * 3.1415926535897931160; > vec2 xsin = sin(xpi); > vec2 result = vec2(1.0, 1.0); > if (xpi.x != 0.0) result.x = xsin.x / xpi.x; > if (xpi.y != 0.0) result.y = xsin.y / xpi.y; > return result.x * result.y; > } > void main(void) > { > vec2 src = texture2DRect(CoordTexture, gl_TexCoord[0].st).sq; > vec4 accum = texture2DRect(AccumTexture, gl_TexCoord[0].st); > > src -= SrcUL; > vec2 t = floor(src) + -14.500000000000000000; > vec2 f = fract(src); > vec2 k = vec2(0.0, 0.0); > > for (float ky = 0.0; ky < 4.0000000000000000000; ky += 1.0) { > k.t = ky + KernelUL.t; > float wy = w(k.t, f.t); > for (float kx = 0.0; kx < 4.0000000000000000000; kx += 1.0) { > k.s = kx + KernelUL.s; > float wx = w(k.s, f.s); > vec2 ix = t + k; > vec4 sp = texture2DRect(SrcTexture, ix); > float weight = wx * wy * sp.a; > accum += sp * weight; > } > } > > gl_FragColor = accum; > } > > #version 110 > #extension GL_ARB_texture_rectangle : enable > uniform sampler2DRect NormTexture; > uniform sampler2DRect CoordTexture; > uniform sampler2DRect InvLutTexture; > uniform sampler2DRect DestLutTexture; > void main(void) > { > // Normalization > vec4 n = texture2DRect(NormTexture, gl_TexCoord[0].st); > vec4 p = vec4(0.0, 0.0, 0.0, 0.0); > if (n.a >= 0.2) p = n / n.a; > > // Photometric > // invLutSize = 256.00000000000000000 > // pixelMax = 255.00000000000000000 > // destLutSize = 1024.0000000000000000 > // destExposure = 3.4434159776346751091e-05 > // srcExposure = 3.4435263503927971915e-05 > // whiteBalanceRed = 1.0000000000000000000 > // whiteBalanceBlue = 1.0000000000000000000 > p.rgb = p.rgb * 255.00000000000000000; > vec2 invR = texture2DRect(InvLutTexture, vec2(p.r, 0.0)).sq; > vec2 invG = texture2DRect(InvLutTexture, vec2(p.g, 0.0)).sq; > vec2 invB = texture2DRect(InvLutTexture, vec2(p.b, 0.0)).sq; > vec3 invX = vec3(invR.x, invG.x, invB.x); > vec3 invY = vec3(invR.y, invG.y, invB.y); > vec3 invA = fract(p.rgb); > p.rgb = mix(invX, invY, invA); > // VigCorrMode=VIGCORR_RADIAL > float vig = 1.0; > { > vec2 vigCorrCenter = vec2(1736.5000000000000000, > 1156.5000000000000000); > float radiusScale=0.00047914298856256606332; > float radialVigCorrCoeff[4] = float[4](1.0000000000000000000, > 0.0000000000000000000, 0.0000000000000000000, 0.0000000000000000000); > vec2 src = texture2DRect(CoordTexture, gl_TexCoord[0].st).sq; > vec2 d = src - vigCorrCenter; > d *= radiusScale; > vig = radialVigCorrCoeff[0]; > float r2 = dot(d, d); > float r = r2; > vig += radialVigCorrCoeff[1] * r; > r *= r2; > vig += radialVigCorrCoeff[2] * r; > r *= r2; > vig += radialVigCorrCoeff[3] * r; > } > vec3 exposure_whitebalance = vec3(0.99996794775271302669, > 0.99996794775271302669, 0.99996794775271302669); > p.rgb = (p.rgb * exposure_whitebalance) / vig; > p.rgb = p.rgb * 1023.0000000000000000; > vec2 destR = texture2DRect(DestLutTexture, vec2(p.r, 0.0)).sq; > vec2 destG = texture2DRect(DestLutTexture, vec2(p.g, 0.0)).sq; > vec2 destB = texture2DRect(DestLutTexture, vec2(p.b, 0.0)).sq; > vec3 destX = vec3(destR.x, destG.x, destB.x); > vec3 destY = vec3(destR.y, destG.y, destB.y); > vec3 destA = fract(p.rgb); > p.rgb = mix(destX, destY, destA); > > gl_FragColor = p; > } > > nona: normalization/photometric shader program could not be compiled. > nona: GL info log: > 0(35) : error C7551: OpenGL first class arrays require #version 120 > 0(35) : error C7553: OpenGL array assignments require #version 120 > > > any hints / help? > > Yuv > > > >
Hi, I'm getting exactly the same error. Graphics card is Asus nVidia 6200 LE and drivers are 190.16 Lukáš --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group. A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hugin-ptx -~----------~----~----~----~------~----~------~--~---
