Skip to content
  • Danylo Piliaiev's avatar
    freedreno: Describe LRZ feedback mechanism · 229bd7b9
    Danylo Piliaiev authored and Marge Bot's avatar Marge Bot committed
    
    
    Some draws do write depth but cannot contribute to LRZ during the BINNING pass
    e.g. when fragment shader has "discard" in it, however they can contribute to
    LRZ during the RENDERING pass via LRZ feedback meachanism. This may allow the
    draws that follow to depth test against the updated LRZ, this is especially
    important if such "bad" draws were at the start of the renderpass.
    
    LRZ feedback happens during the RENDERING pass when LRZ_FEEDBACK_ZMODE_MASK
    is set, if draw has a6xx_ztest_mode that has corresponding flag set in
    LRZ_FEEDBACK_ZMODE_MASK - its depth values would be used for feedback.
    
    LRZ feedback alongside with LRZ testing also works during sysmem rendering.
    
    Signed-off-by: default avatarDanylo Piliaiev <dpiliaiev@igalia.com>
    Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25345>
    229bd7b9