OSDN Git Service

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)
committerAndres Gomez <agomez@igalia.com>
Sat, 19 Aug 2017 14:39:34 +0000 (17:39 +0300)
commitc968de1989026388f690cf41913f47f45c7abbe8
tree47bc72355064d6e9a0412d5d5ce74e3daaf697d2
parent8aa358bd69862d4a88148942c85ee74048fa2561
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>
(cherry picked from commit 4630ede1021d49c610de1274dc9d1006b843e46b)
src/amd/common/ac_binary.c
src/amd/common/ac_binary.h
src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c