iris: Enable PIPE_CAP_SHAREABLE_SHADERS.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 17 Nov 2020 22:36:29 +0000 (14:36 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 29 Jan 2021 06:26:29 +0000 (06:26 +0000)
commit84a38ec13362a7c9d4477c21c37305e499d64287
tree062ada87882f2a3b252d9e5403ad80422b975cb1
parent1afed51445c4d0fa9420ab3fb9e5b82638a1a304
iris: Enable PIPE_CAP_SHAREABLE_SHADERS.

Now that we store shader variants in the objects themselves rather
than a per-context hash table, they are actually global across
contexts.  We can enable this feature.

This makes shaders shared across contexts, so apps can compile in
one and use it in another.  This has always been allowed by GL,
but in the past we've simply recompiled the shaders in every context,
which is slow and painful.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7668>
src/gallium/drivers/iris/iris_screen.c