Skip to content
  • Karol Herbst's avatar
    nir: rename global/local to private/function memory · d0c6ef27
    Karol Herbst authored
    
    
    the naming is a bit confusing no matter how you look at it. Within SPIR-V
    "global" memory is memory accessible from all threads. glsl "global" memory
    normally refers to shader thread private memory declared at global scope. As
    we already use "shared" for memory shared across all thrads of a work group
    the solution where everybody could be happy with is to rename "global" to
    "private" and use "global" later for memory usually stored within system
    accessible memory (be it VRAM or system RAM if keeping SVM in mind).
    glsl "local" memory is memory only accessible within a function, while SPIR-V
    "local" memory is memory accessible within the same workgroup.
    
    v2: rename local to function as well
    v3: rename vtn_variable_mode_local as well
    
    Signed-off-by: Karol Herbst's avatarKarol Herbst <kherbst@redhat.com>
    Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
    d0c6ef27