mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
radv: add radv_nir_to_llvm.h
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28551>
This commit is contained in:
parent
58cd24a636
commit
d1d04cfeaa
5 changed files with 44 additions and 4 deletions
|
|
@ -198,6 +198,7 @@ if with_llvm
|
|||
'radv_llvm_helper.cpp',
|
||||
'radv_llvm_helper.h',
|
||||
'radv_nir_to_llvm.c',
|
||||
'radv_nir_to_llvm.h',
|
||||
)
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@
|
|||
* IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "radv_nir_to_llvm.h"
|
||||
#include "nir/nir.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_llvm_helper.h"
|
||||
|
|
|
|||
41
src/amd/vulkan/radv_nir_to_llvm.h
Normal file
41
src/amd/vulkan/radv_nir_to_llvm.h
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* Copyright © 2016 Red Hat.
|
||||
* Copyright © 2016 Bas Nieuwenhuizen
|
||||
*
|
||||
* based in part on anv driver which is:
|
||||
* Copyright © 2015 Intel Corporation
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef RADV_NIR_TO_LLVM_H
|
||||
#define RADV_NIR_TO_LLVM_H
|
||||
|
||||
struct radv_nir_compiler_options;
|
||||
struct radv_shader_info;
|
||||
struct nir_shader;
|
||||
struct radv_shader_binary;
|
||||
struct radv_shader_args;
|
||||
|
||||
void llvm_compile_shader(const struct radv_nir_compiler_options *options, const struct radv_shader_info *info,
|
||||
unsigned shader_count, struct nir_shader *const *shaders, struct radv_shader_binary **binary,
|
||||
const struct radv_shader_args *args);
|
||||
|
||||
#endif /* RADV_NIR_TO_LLVM_H */
|
||||
|
|
@ -282,10 +282,6 @@ struct radv_shader_args;
|
|||
struct radv_nir_compiler_options;
|
||||
struct radv_shader_info;
|
||||
|
||||
void llvm_compile_shader(const struct radv_nir_compiler_options *options, const struct radv_shader_info *info,
|
||||
unsigned shader_count, struct nir_shader *const *shaders, struct radv_shader_binary **binary,
|
||||
const struct radv_shader_args *args);
|
||||
|
||||
#define RADV_FROM_HANDLE(__radv_type, __name, __handle) VK_FROM_HANDLE(__radv_type, __name, __handle)
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@
|
|||
#include "util/u_atomic.h"
|
||||
#include "radv_cs.h"
|
||||
#include "radv_debug.h"
|
||||
#include "radv_nir_to_llvm.h"
|
||||
#include "radv_printf.h"
|
||||
#include "radv_private.h"
|
||||
#include "radv_sdma.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue