freedreno: Immediately compile a default variant of shaders.
authorEric Anholt <eric@anholt.net>
Tue, 14 Apr 2020 22:40:43 +0000 (15:40 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 1 May 2020 16:26:32 +0000 (16:26 +0000)
commit812c55b07960918db8bb047031c214f77ab1a37f
tree2341b7a32162ae7a9ee5a5953d556155a550d14c
parent29f58cfbd07b419bca2cbe1e455232c7319444f4
freedreno: Immediately compile a default variant of shaders.

Now that we normalize our keys fairly well, build a variant at shader
state creation time so that hopefully you don't have to call the compiler
at draw time (as is now the case with glmark2 ES and most of the humus GL
demos).

Fixes: #2782
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4562>
src/gallium/drivers/freedreno/ir3/ir3_gallium.c