Skip to content
Commit 41a1a82e authored by Jonas Pfeil's avatar Jonas Pfeil Committed by popcornmix
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>
(cherry picked from commit c778cc5d)
parent 0a4e3e83
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment