Skip to content
Commit c778cc5d authored by Jonas Pfeil's avatar Jonas Pfeil Committed by Eric Anholt
Browse files

drm/vc4: Add fragment shader threading support



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>
parent 3a622346
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment