st/mesa will use this, but drivers can use it too.
417927e tgsi: add a utility for emulating some GL features
src/gallium/auxiliary/Makefile.sources | 2 +
src/gallium/auxiliary/tgsi/tgsi_emulate.c | 168 +++++++++++++++++++++++++++++
src/gallium/auxiliary/tgsi/tgsi_emulate.h | 38 +++++++
3 files changed, 208 insertions(+)
Upstream: cgit.freedesktop.org