ac: fail shader compilation if libelf is replaced by an incompatible version
authorMarek Olšák <marek.olsak@amd.com>
Wed, 9 Aug 2017 20:30:28 +0000 (22:30 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 10 Aug 2017 11:24:23 +0000 (13:24 +0200)
commit4630ede1021d49c610de1274dc9d1006b843e46b
tree34c53eebe107b14f23881d6c1daefe0dd5eca4ea
parent2437ebd7059062d59d2d9b8c6c91977432a5aafa
ac: fail shader compilation if libelf is replaced by an incompatible version

UE4Editor has this issue.

This commit prevents hangs (release build) or assertion failures (debug
build). It doesn't fix the editor, but catastrophic scenarios are
prevented.

Cc: 17.1 17.2 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/common/ac_binary.c
src/amd/common/ac_binary.h
src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c