Skip to content
  • Carsten Haitzler's avatar
    vc4: Declare the cpu pointers as being modified in NEON asm. · 300d3ae8
    Carsten Haitzler authored and Emma Anholt's avatar Emma Anholt committed
    Otherwise, the compiler is free to reuse the register containing the input
    for another call and assume that the value hasn't been modified.  Fixes
    crashes on texture upload/download with current gcc.
    
    We now have to have a temporary for the cpu2 value, since outputs must be
    lvalues.
    
    (commit message by anholt)
    
    Fixes: 4d300242 ("vc4: Use NEON to speed up utile loads on Pi2.")
    300d3ae8