Skip to content
  • Eduardo Lima Mitev's avatar
    nir: Add new texop nir_texop_tex_prefetch · f1d4fadf
    Eduardo Lima Mitev authored and Rob Clark's avatar Rob Clark committed
    
    
    This is like nir_texop_tex, but signals that the sampling coordinates
    are immutable during the shader stage, in a way that allows the HW
    that supports pre-dispatching sampling operations to pre-fetch
    the result prior to scheduling the shader stage.
    
    This is introduced to support the feature in Freedreno. Adreno HW
    from a4xx supports it.
    
    A NIR pass introduced later in this series will detect sampling
    operations that are eligible for pre-dispatch, and replace
    nir_texop_tex by this new op, to tell the backend to enable
    pre-fetch.
    
    Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
    Reviewed-by: default avatarKristian H. Kristensen <hoegsberg@google.com>
    f1d4fadf