Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 10 of 12

Thread: NV bug (tested on 314.14) using storage buffer objects..

Threaded View

  1. #1
    Intern Newbie
    Join Date
    Oct 2007
    Posts
    47

    NV bug (tested on 314.14) using storage buffer objects..

    UPDATE:Sorry for poor code pasting I was testing correct code (with semicolons and defined g_mProjectionInv like mat4x4 so doesn't change any observation)
    Hi I seem to have found a bug using storage buffer objects porting deferred+ code to GLSL
    I tried to use a storage buffer instead of default uniform buffer to see only how affected perf.. so
    Code :
    #ifdef USE_SBO
    layout(binding = 0) buffer cbPerObject 
    #else
    uniform cbPerObject
    #endif
    {
        mat4x4  g_mWorldViewProjection;     
        mat4x4  g_mWorldView;               
        mat4x4  g_mWorld;                   
        float4  g_MaterialAmbientColorUp;
        float4  g_MaterialAmbientColorDown;
    };
    has code like accessing
    Code :
    either using
    g_mProjectionInv[2].w
    or
    g_mProjectionInv[2][3]

    shader compiles (ie. generates NV assembly but fails with:
    Code :
    -- error message --
    line 710, column 30:  error: expected ';'
    line 711, column 29:  error: expected ';'
    -- internal assembly text --
    !!NVcp5.0
     
    offending lines:
    LDB.F32X4 R3.x, sbo_buf1[112].w;
    LDB.F32X4 R2.x, sbo_buf1[96].w;
    so seems doesn't like .w modifier and seems coming from access to matrices mat4x4
    Last edited by oscarbg; 03-11-2013 at 06:52 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •