On 22-03-2017 18:53, T. Modes wrote:
> Yes, it may be one or even a combination of both.
> If you add the "-d" switch (for debug) to the nona call, it should print
> some more diagnostics.
> Not sure, if this helps. But it's worth a try.
> Could you send the full output for both cases (the working one and the
> failing one).
> 
> TIA
> Thomas
> 

This was my first time calling nona directly so I'm not sure I've done
it right.

I've called it with:
nona -d -g -o out hugin_project.pto

I'm attaching amd.log and intel.log with the output when using each GPU.

-- 
Mauro Santos

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/c1d517f5-e504-9672-cbff-66367845927a%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
nona: using graphics card: X.Org Gallium 0.4 on AMD OLAND (DRM 2.49.0 / 4.10.4-1-ARCH, LLVM 3.9.1)
destStart=[1931, 367]
destEnd=[6843, 3237]
destSize=[(4912, 2870)]
srcSize=[(5184, 3456)]
srcBuffer=0x7f61a2898010
srcAlphaBuffer=0
destBuffer=0x7f61a0042010
destAlphaBuffer=0x7f619f2d0010
destGLInternalFormat=GL_RGBA8
destGLFormat=GL_RGB
destGLType=GL_UNSIGNED_BYTE
srcGLInternalFormat=GL_RGBA8
srcGLFormat=GL_RGB
srcGLType=GL_UNSIGNED_BYTE
srcAlphaGLType=GL_BYTE
destAlphaGLType=GL_UNSIGNED_BYTE

warparound=0
needsAtanWorkaround=0
maxTextureSize=16384
Source chunks:
    [(0, 0) to (5184, 3456) = (5184x3456)]
Dest chunks:
    [(0, 0) to (4912, 2870) = (4912x2870)]
Total GPU memory used: 745698688
Interpolator chunks:
    [(0, 0) to (4, 4) = (4x4)]
#version 110
#extension GL_ARB_texture_rectangle : enable
uniform sampler2DRect SrcTexture;
float sinh(in float x) { return (exp(x) - exp(-x)) / 2.0; }
float cosh(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(3620.0000000000000000, 2715.0000000000000000);

    // rotate_erect(14165.217391304349803, -944.34782608695661565)
    {
        src.s += -944.34782608695661565;
        float w = (abs(src.s) > 14165.217391304349803) ? 1.0 : 0.0;
        float n = (src.s < 0.0) ? 0.5 : -0.5;
        src.s += w * -28330.434782608699606 * ceil(src.s / 28330.434782608699606 + n);
    }

    // sphere_tp_erect(4508.9287355947399192)
    {
        float phi = src.s / 4508.9287355947399192;
        float theta = -src.t / 4508.9287355947399192 + 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 = 4508.9287355947399192 * atan2_safe(r, s * cos(phi));
        src = v * (theta / r);
    }

    // persp_sphere(4508.9287355947399192)
    {
        mat3 m = mat3(0.99937936629915458120, 0.034384542067273503319, 0.0076541153848242327734,
                      -0.035226158114394258425, 0.97550240222298856274, 0.21715013479544156838,
                      0.0000000000000000000, -0.21728498918241601068, 0.97610820787246599384);
        float r = length(src);
        float theta = r / 4508.9287355947399192;
        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 = 4508.9287355947399192 * atan2_safe(r, u.p) / r;
        src = theta * u.st;
    }

    // rect_sphere_tp(4508.9287355947399192)
    {
        float r = length(src);
        float theta = r / 4508.9287355947399192;
        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.98873230791609101331, 0.98873230791609101331)
    src *= vec2(0.98873230791609101331, 0.98873230791609101331);

    // radial(1.0113176926072733330, 0.0000000000000000000, -0.011317692607273400693, 0.0000000000000000000, 1728.0000000000000000, 5.4576317440010138071)
    {
        float r = length(src) / 1728.0000000000000000;
        float scale = 1000.0; 
        if (r < 5.4576317440010138071) {
            scale = ((0.0000000000000000000 * r + -0.011317692607273400693) * r + 0.0000000000000000000) * r + 1.0113176926072733330;
        }
        src *= scale;
    }

    src += vec2(2591.5000000000000000, 1727.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 A = -0.75000000000000000000;
    float c = abs(i - 1.0);
    float m = (i > 1.0) ? -1.0 : 1.0;
    float p = c + m * f;
    if (i == 1.0 || i == 2.0) {
        return (( A + 2.0 )*p - ( A + 3.0 ))*p*p + 1.0;
    } else {
        return (( A * p - 5.0 * A ) * p + 8.0 * A ) * p - 4.0 * A;
    }
}
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) + -0.50000000000000000000;
    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 120
#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 = 2.5530830607439579773e-05
    // srcExposure = 2.4691359197467527183e-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(2591.5000000000000000, 1727.5000000000000000);
        float radiusScale=0.00032100705800071132820;
        float radialVigCorrCoeff0 = 1.0000000000000000000;
        float radialVigCorrCoeff1 = 0.084215937263756701636;
        float radialVigCorrCoeff2 = -0.16733702339987999164;
        float radialVigCorrCoeff3 = -0.069339912931908803673;
        vec2 src = texture2DRect(CoordTexture, gl_TexCoord[0].st).sq;
        vec2 d = src - vigCorrCenter;
        d *= radiusScale;
        vig = radialVigCorrCoeff0;
        float r2 = dot(d, d);
        float r = r2;
        vig += radialVigCorrCoeff1 * r;
        r *= r2;
        vig += radialVigCorrCoeff2 * r;
        r *= r2;
        vig += radialVigCorrCoeff3 * r;
    }
    vec3 exposure_whitebalance = vec3(1.0339985904890223178, 1.0339985904890223178, 1.0339985904890223178);
    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;
}

gpu shader program compile time = 0.014
gpu shader texture/framebuffer setup time = 0.024
gpu dest chunk=[(0, 0) to (4912, 2870) = (4912x2870)] coord image render time = 0.034
gpu dest chunk=[(0, 0) to (4912, 2870) = (4912x2870)] source chunk=[(0, 0) to (5184, 3456) = (5184x3456)] src upload = 0.124
gpu dest chunk=[(0, 0) to (4912, 2870) = (4912x2870)] source chunk=[(0, 0) to (5184, 3456) = (5184x3456)] src render = 0.028
gpu dest chunk=[(0, 0) to (4912, 2870) = (4912x2870)] source chunk=[(0, 0) to (5184, 3456) = (5184x3456)] interpolation chunk=[(0, 0) to (4, 4) = (4x4)] setup = 0.011
gpu dest chunk=[(0, 0) to (4912, 2870) = (4912x2870)] source chunk=[(0, 0) to (5184, 3456) = (5184x3456)] interpolation chunk=[(0, 0) to (4, 4) = (4x4)] render = 0.031
gpu dest chunk=[(0, 0) to (4912, 2870) = (4912x2870)] normalization setup = 0.001
gpu dest chunk=[(0, 0) to (4912, 2870) = (4912x2870)] normalization render = 0.015
gpu dest chunk=[(0, 0) to (4912, 2870) = (4912x2870)] dest rgb disassembly setup = 0
gpu dest chunk=[(0, 0) to (4912, 2870) = (4912x2870)] dest rgb disassembly render = 0.019
gpu dest chunk=[(0, 0) to (4912, 2870) = (4912x2870)] rgb readback = 0.133
gpu dest chunk=[(0, 0) to (4912, 2870) = (4912x2870)] dest alpha disassembly setup = 0
gpu dest chunk=[(0, 0) to (4912, 2870) = (4912x2870)] dest alpha disassembly render = 0.007
gpu dest chunk=[(0, 0) to (4912, 2870) = (4912x2870)] alpha readback = 0.047
gpu destruct time = 0
gpu total time = 0.488
destStart=[285, 367]
destEnd=[5397, 3237]
destSize=[(5112, 2870)]
srcSize=[(5184, 3456)]
srcBuffer=0x7f61a2898010
srcAlphaBuffer=0
destBuffer=0x7f619fe9e010
destAlphaBuffer=0x7f619d5ce010
destGLInternalFormat=GL_RGBA8
destGLFormat=GL_RGB
destGLType=GL_UNSIGNED_BYTE
srcGLInternalFormat=GL_RGBA8
srcGLFormat=GL_RGB
srcGLType=GL_UNSIGNED_BYTE
srcAlphaGLType=GL_BYTE
destAlphaGLType=GL_UNSIGNED_BYTE

warparound=0
needsAtanWorkaround=0
maxTextureSize=16384
Source chunks:
    [(0, 0) to (5184, 3456) = (5184x3456)]
Dest chunks:
    [(0, 0) to (5112, 2870) = (5112x2870)]
Total GPU memory used: 770954688
Interpolator chunks:
    [(0, 0) to (4, 4) = (4x4)]
#version 110
#extension GL_ARB_texture_rectangle : enable
uniform sampler2DRect SrcTexture;
float sinh(in float x) { return (exp(x) - exp(-x)) / 2.0; }
float cosh(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(3620.0000000000000000, 2715.0000000000000000);

    // plane_transfer_to_camera
    //     distance   : 4508.9287355947399192
    //     x          : -0.013893172213791700129
    //     y          : 0.0027566785012861300466
    //     z          : 0.0038038626254894101347
    //     plane yaw  : 0.017453292519943295474
    //     plane pitch: 0.0000000000000000000
    {
        float phi = src.s / 4508.9287355947399192;
        float theta = 1.5707963267948965580 - src.t / 4508.9287355947399192;
        vec3 p = vec3(sin(theta)*sin(phi), cos(theta), sin(theta)*-cos(phi));
        vec3 plane_coeff=vec3(0.017452406437283511653, 6.1232339957367660359e-17, -0.99984769515639126958);
        float den = -dot(plane_coeff, p);
        if ( abs(den) < 1E-15 ) { discardA = 0.0; discardB = 1.0; }
        float u = length(plane_coeff);
        u = -u * u / den;
        if ( u < 0.0 ) { discardA = 0.0; discardB = 1.0; }
        p *= u;
        p -= vec3(-0.013893172213791700129,0.0027566785012861300466,0.0038038626254894101347);
        src = 4508.9287355947399192 * vec2( atan2_safe(p.s, -p.p), asin(p.t/length(p)));
    }

    // rotate_erect(14165.217391304349803, 937.50057705488529791)
    {
        src.s += 937.50057705488529791;
        float w = (abs(src.s) > 14165.217391304349803) ? 1.0 : 0.0;
        float n = (src.s < 0.0) ? 0.5 : -0.5;
        src.s += w * -28330.434782608699606 * ceil(src.s / 28330.434782608699606 + n);
    }

    // sphere_tp_erect(4508.9287355947399192)
    {
        float phi = src.s / 4508.9287355947399192;
        float theta = -src.t / 4508.9287355947399192 + 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 = 4508.9287355947399192 * atan2_safe(r, s * cos(phi));
        src = v * (theta / r);
    }

    // persp_sphere(4508.9287355947399192)
    {
        mat3 m = mat3(0.99950154078168962357, 0.030731158781025433302, 0.0072295127777618727050,
                      -0.031570080377287902673, 0.97294147447718293265, 0.22888472484448776911,
                      0.0000000000000000000, -0.22899887144294117647, 0.97342668798315745704);
        float r = length(src);
        float theta = r / 4508.9287355947399192;
        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 = 4508.9287355947399192 * atan2_safe(r, u.p) / r;
        src = theta * u.st;
    }

    // rect_sphere_tp(4508.9287355947399192)
    {
        float r = length(src);
        float theta = r / 4508.9287355947399192;
        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.98873230791609101331, 0.98873230791609101331)
    src *= vec2(0.98873230791609101331, 0.98873230791609101331);

    // radial(1.0113176926072733330, 0.0000000000000000000, -0.011317692607273400693, 0.0000000000000000000, 1728.0000000000000000, 5.4576317440010138071)
    {
        float r = length(src) / 1728.0000000000000000;
        float scale = 1000.0; 
        if (r < 5.4576317440010138071) {
            scale = ((0.0000000000000000000 * r + -0.011317692607273400693) * r + 0.0000000000000000000) * r + 1.0113176926072733330;
        }
        src *= scale;
    }

    src += vec2(2591.5000000000000000, 1727.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 A = -0.75000000000000000000;
    float c = abs(i - 1.0);
    float m = (i > 1.0) ? -1.0 : 1.0;
    float p = c + m * f;
    if (i == 1.0 || i == 2.0) {
        return (( A + 2.0 )*p - ( A + 3.0 ))*p*p + 1.0;
    } else {
        return (( A * p - 5.0 * A ) * p + 8.0 * A ) * p - 4.0 * A;
    }
}
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) + -0.50000000000000000000;
    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 120
#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 = 2.5530830607439579773e-05
    // srcExposure = 2.6399647416314591948e-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(2591.5000000000000000, 1727.5000000000000000);
        float radiusScale=0.00032100705800071132820;
        float radialVigCorrCoeff0 = 1.0000000000000000000;
        float radialVigCorrCoeff1 = 0.084215937263756701636;
        float radialVigCorrCoeff2 = -0.16733702339987999164;
        float radialVigCorrCoeff3 = -0.069339912931908803673;
        vec2 src = texture2DRect(CoordTexture, gl_TexCoord[0].st).sq;
        vec2 d = src - vigCorrCenter;
        d *= radiusScale;
        vig = radialVigCorrCoeff0;
        float r2 = dot(d, d);
        float r = r2;
        vig += radialVigCorrCoeff1 * r;
        r *= r2;
        vig += radialVigCorrCoeff2 * r;
        r *= r2;
        vig += radialVigCorrCoeff3 * r;
    }
    vec3 exposure_whitebalance = vec3(0.96708983286124894363, 0.96708983286124894363, 0.96708983286124894363);
    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;
}

gpu shader program compile time = 0.01
gpu shader texture/framebuffer setup time = 0.041
gpu dest chunk=[(0, 0) to (5112, 2870) = (5112x2870)] coord image render time = 0.023
gpu dest chunk=[(0, 0) to (5112, 2870) = (5112x2870)] source chunk=[(0, 0) to (5184, 3456) = (5184x3456)] src upload = 0.117
gpu dest chunk=[(0, 0) to (5112, 2870) = (5112x2870)] source chunk=[(0, 0) to (5184, 3456) = (5184x3456)] src render = 0.004
gpu dest chunk=[(0, 0) to (5112, 2870) = (5112x2870)] source chunk=[(0, 0) to (5184, 3456) = (5184x3456)] interpolation chunk=[(0, 0) to (4, 4) = (4x4)] setup = 0.006
gpu dest chunk=[(0, 0) to (5112, 2870) = (5112x2870)] source chunk=[(0, 0) to (5184, 3456) = (5184x3456)] interpolation chunk=[(0, 0) to (4, 4) = (4x4)] render = 0.027
gpu dest chunk=[(0, 0) to (5112, 2870) = (5112x2870)] normalization setup = 0
gpu dest chunk=[(0, 0) to (5112, 2870) = (5112x2870)] normalization render = 0.017
gpu dest chunk=[(0, 0) to (5112, 2870) = (5112x2870)] dest rgb disassembly setup = 0
gpu dest chunk=[(0, 0) to (5112, 2870) = (5112x2870)] dest rgb disassembly render = 0.007
gpu dest chunk=[(0, 0) to (5112, 2870) = (5112x2870)] rgb readback = 0.126
gpu dest chunk=[(0, 0) to (5112, 2870) = (5112x2870)] dest alpha disassembly setup = 0
gpu dest chunk=[(0, 0) to (5112, 2870) = (5112x2870)] dest alpha disassembly render = 0.007
gpu dest chunk=[(0, 0) to (5112, 2870) = (5112x2870)] alpha readback = 0.083
gpu destruct time = 0.001
gpu total time = 0.469
nona: using graphics card: Intel Open Source Technology Center Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2) 
destStart=[1931, 367]
destEnd=[6843, 3237]
destSize=[(4912, 2870)]
srcSize=[(5184, 3456)]
srcBuffer=0x7f68f954b010
srcAlphaBuffer=0
destBuffer=0x7f68f6cf5010
destAlphaBuffer=0x7f68f5f83010
destGLInternalFormat=GL_RGBA8
destGLFormat=GL_RGB
destGLType=GL_UNSIGNED_BYTE
srcGLInternalFormat=GL_RGBA8
srcGLFormat=GL_RGB
srcGLType=GL_UNSIGNED_BYTE
srcAlphaGLType=GL_BYTE
destAlphaGLType=GL_UNSIGNED_BYTE

warparound=0
needsAtanWorkaround=0
maxTextureSize=16384
Source chunks:
    [(0, 0) to (5184, 3456) = (5184x3456)]
Dest chunks:
    [(0, 0) to (2456, 2870) = (2456x2870)]
    [(2456, 0) to (4912, 2870) = (2456x2870)]
Total GPU memory used: 435555008
Interpolator chunks:
    [(0, 0) to (4, 4) = (4x4)]
#version 110
#extension GL_ARB_texture_rectangle : enable
uniform sampler2DRect SrcTexture;
float sinh(in float x) { return (exp(x) - exp(-x)) / 2.0; }
float cosh(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(3620.0000000000000000, 2715.0000000000000000);

    // rotate_erect(14165.217391304349803, -944.34782608695661565)
    {
        src.s += -944.34782608695661565;
        float w = (abs(src.s) > 14165.217391304349803) ? 1.0 : 0.0;
        float n = (src.s < 0.0) ? 0.5 : -0.5;
        src.s += w * -28330.434782608699606 * ceil(src.s / 28330.434782608699606 + n);
    }

    // sphere_tp_erect(4508.9287355947399192)
    {
        float phi = src.s / 4508.9287355947399192;
        float theta = -src.t / 4508.9287355947399192 + 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 = 4508.9287355947399192 * atan2_safe(r, s * cos(phi));
        src = v * (theta / r);
    }

    // persp_sphere(4508.9287355947399192)
    {
        mat3 m = mat3(0.99937936629915458120, 0.034384542067273503319, 0.0076541153848242327734,
                      -0.035226158114394258425, 0.97550240222298856274, 0.21715013479544156838,
                      0.0000000000000000000, -0.21728498918241601068, 0.97610820787246599384);
        float r = length(src);
        float theta = r / 4508.9287355947399192;
        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 = 4508.9287355947399192 * atan2_safe(r, u.p) / r;
        src = theta * u.st;
    }

    // rect_sphere_tp(4508.9287355947399192)
    {
        float r = length(src);
        float theta = r / 4508.9287355947399192;
        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.98873230791609101331, 0.98873230791609101331)
    src *= vec2(0.98873230791609101331, 0.98873230791609101331);

    // radial(1.0113176926072733330, 0.0000000000000000000, -0.011317692607273400693, 0.0000000000000000000, 1728.0000000000000000, 5.4576317440010138071)
    {
        float r = length(src) / 1728.0000000000000000;
        float scale = 1000.0; 
        if (r < 5.4576317440010138071) {
            scale = ((0.0000000000000000000 * r + -0.011317692607273400693) * r + 0.0000000000000000000) * r + 1.0113176926072733330;
        }
        src *= scale;
    }

    src += vec2(2591.5000000000000000, 1727.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 A = -0.75000000000000000000;
    float c = abs(i - 1.0);
    float m = (i > 1.0) ? -1.0 : 1.0;
    float p = c + m * f;
    if (i == 1.0 || i == 2.0) {
        return (( A + 2.0 )*p - ( A + 3.0 ))*p*p + 1.0;
    } else {
        return (( A * p - 5.0 * A ) * p + 8.0 * A ) * p - 4.0 * A;
    }
}
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) + -0.50000000000000000000;
    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 120
#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 = 2.5530830607439579773e-05
    // srcExposure = 2.4691359197467527183e-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(2591.5000000000000000, 1727.5000000000000000);
        float radiusScale=0.00032100705800071132820;
        float radialVigCorrCoeff0 = 1.0000000000000000000;
        float radialVigCorrCoeff1 = 0.084215937263756701636;
        float radialVigCorrCoeff2 = -0.16733702339987999164;
        float radialVigCorrCoeff3 = -0.069339912931908803673;
        vec2 src = texture2DRect(CoordTexture, gl_TexCoord[0].st).sq;
        vec2 d = src - vigCorrCenter;
        d *= radiusScale;
        vig = radialVigCorrCoeff0;
        float r2 = dot(d, d);
        float r = r2;
        vig += radialVigCorrCoeff1 * r;
        r *= r2;
        vig += radialVigCorrCoeff2 * r;
        r *= r2;
        vig += radialVigCorrCoeff3 * r;
    }
    vec3 exposure_whitebalance = vec3(1.0339985904890223178, 1.0339985904890223178, 1.0339985904890223178);
    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;
}

gpu shader program compile time = 0.056
nona: GL error in /build/hugin/src/hugin-2016.2.0/src/hugin_base/vigra_ext/ImageTransformsGPU.cpp:829
invalid value (0x501)

Reply via email to