Skip to content
  • Dave Airlie's avatar
    radv: lower ffma in nir. · 2c61594d
    Dave Airlie authored
    
    
    So it appears the Vulkan SPIR-V fma opcode can be equivalent to a
    mad operation, and the fma hw opcode on AMD hw is issued like a double
    opcode so is slower. Also the radeonsi stack does this.
    
    This appears to improve performance on a number of games from Feral,
    and thanks to Feral for noticing the problem.
    
    I'm reposting this one as Marek indicated he thinks this is what
    we should be doing on AMD hw.
    
    Reviewed-by: default avatarNicolai Hähnle <nicolai.haehnle@amd.com>
    Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
    Cc: "17.2" <mesa-stable@lists.freedesktop.org>
    Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
    2c61594d