Skip to content
  • Danylo Piliaiev's avatar
    ir3: add debug option to override shader assembly · 39a2da73
    Danylo Piliaiev authored
    
    
    IR3_SHADER_DEBUG=vs,tcs,tes... now also prints shader's sha1.
    
    When there is a file named %sha1%.asm in IR3_SHADER_OVERRIDE_PATH
    directory - ir3 assembly from file would be parsed, assembled, and
    will override the shader with corresponding sha1 hash.
    
    Parsing failure is considered unrecoverable error.
    Upon successful override shader's assembly is printed with:
     "Native code (overridden) for unnamed ..."
    
    This debug option allows easier testing of small changes in
    assembly without modifying the compiler or using computerator.
    
    Signed-off-by: default avatarDanylo Piliaiev <dpiliaiev@igalia.com>
    Part-of: <mesa/mesa!8388>
    39a2da73