Skip to content
  • Andres Gomez's avatar
    arb_program_interface_query: correct rendez-vous by name matching · 222fc0b5
    Andres Gomez authored
    
    
    Previuosly, this was overlooked asuming that, since they were SSOs, no
    inner interface matching check was needed.
    
    From the ARB_separate_shader_objects spec v.25:
    
      " With separable program objects, interfaces between shader stages
        may involve the outputs from one program object and the inputs
        from a second program object.  For such interfaces, it is not
        possible to detect mismatches at link time, because the programs
        are linked separately.  When each such program is linked, all
        inputs or outputs interfacing with another program stage are
        treated as active.  The linker will generate an executable that
        assumes the presence of a compatible program on the other side of
        the interface.  If a mismatch between programs occurs, no GL error
        will be generated, but some or all of the inputs on the interface
        will be undefined."
    
    Cc: Timothy Arceri <tarceri@itsqueeze.com>
    Cc: Tapani Pälli <tapani.palli@intel.com>
    Cc: Ilia Mirkin <imirkin@alum.mit.edu>
    Cc: Martin Peres <martin.peres@linux.intel.com>
    Signed-off-by: default avatarAndres Gomez <agomez@igalia.com>
    Reviewed-by: default avatarTimothy Arceri <tarceri@itsqueeze.com>
    222fc0b5