st/glsl_to_tgsi: add ARB_get_program_binary support using TGSI
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 27 Nov 2017 06:01:01 +0000 (17:01 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 17 Jan 2018 12:43:28 +0000 (23:43 +1100)
commita20016d8277f9cd68620784417a57ae227783a04
treea42cc195c097c31f33b8e997de5eb1e05bff625f
parenta34262aed77dc358c29b492139796a9847dd37d1
st/glsl_to_tgsi: add ARB_get_program_binary support using TGSI

This resolves a game bug in Dead Island. The game doesn't properly
handle ARB_get_program_binary with 0 supported formats, and ends up
crashing.

This will enable ARB_get_program_binary binary support for any
driver that currently enables the on-disk shader cache.

Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=85564
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_extensions.c