summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_binary.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-08-09 22:30:28 +0200
committerMarek Olšák <[email protected]>2017-08-10 13:24:23 +0200
commit4630ede1021d49c610de1274dc9d1006b843e46b (patch)
tree34c53eebe107b14f23881d6c1daefe0dd5eca4ea /src/amd/common/ac_binary.h
parent2437ebd7059062d59d2d9b8c6c91977432a5aafa (diff)
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 <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/amd/common/ac_binary.h')
-rw-r--r--src/amd/common/ac_binary.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/common/ac_binary.h b/src/amd/common/ac_binary.h
index a784a7220cc..45f554e4fe0 100644
--- a/src/amd/common/ac_binary.h
+++ b/src/amd/common/ac_binary.h
@@ -83,7 +83,7 @@ struct ac_shader_config {
* Parse the elf binary stored in \p elf_data and create a
* ac_shader_binary object.
*/
-void ac_elf_read(const char *elf_data, unsigned elf_size,
+bool ac_elf_read(const char *elf_data, unsigned elf_size,
struct ac_shader_binary *binary);
/**