diff options
author | Tom Stellard <[email protected]> | 2014-02-03 15:54:02 -0500 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-03-07 13:31:52 -0500 |
commit | 6974eb907600b9d0176d3158ff0fd30ac3e56a55 (patch) | |
tree | 26df3e07eb2a508d34b3bc61b52829ceec88c2f4 /src/gallium/drivers/radeon/radeon_elf_util.h | |
parent | 1f4a9fc84e8d59e7911c3a6c39aaa191bb3e6ebb (diff) |
radeon/llvm: Factor elf parsing code out into its own function
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_elf_util.h')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_elf_util.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/radeon_elf_util.h b/src/gallium/drivers/radeon/radeon_elf_util.h new file mode 100644 index 00000000000..60dae42e224 --- /dev/null +++ b/src/gallium/drivers/radeon/radeon_elf_util.h @@ -0,0 +1,39 @@ +/* + * Copyright 2014 Advanced Micro Devices, Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + * + * Authors: Tom Stellard <[email protected]> + * + */ + +#ifndef RADEON_ELF_UTIL_H +#define RADEON_ELF_UTIL_H + +struct radeon_shader_binary; + +/* + * Parse the elf binary stored in \p elf_data and create a + * radeon_shader_binary object. + */ +void radeon_elf_read(const char *elf_data, unsigned elf_size, + struct radeon_shader_binary *binary, unsigned debug); + +#endif /* RADEON_ELF_UTIL_H */ |