• Jonas Pfeil's avatar
    drm/vc4: Add fragment shader threading support · c778cc5d
    Jonas Pfeil authored
    FS threading brings performance improvements of 0-20% in glmark2.
    
    The validation code checks for thread switch signals and ensures that
    the registers of the other thread are not touched, and that our clamps
    are not live across thread switches.  It also checks that the
    threading and branching instructions do not interfere.
    
    (Original patch by Jonas, changes by anholt for style cleanup,
    removing validation the kernel doesn't need to do, and adding the flag
    for userspace).
    
    v2: Minor style fixes from checkpatch.
    Signed-off-by: default avatarJonas Pfeil <pfeiljonas@gmx.de>
    Signed-off-by: default avatarEric Anholt <eric@anholt.net>
    c778cc5d
vc4_drv.h 15.6 KB