ac: move ac_exp_param.h to ac_nir.h

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14266>
This commit is contained in:
Marek Olšák
2021-12-12 20:20:36 -05:00
committed by Marge Bot
parent d4a1766a5a
commit 116a05c721
15 changed files with 22 additions and 54 deletions

View File

@@ -1,41 +0,0 @@
/*
* 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, sub license, 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 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 NON-INFRINGEMENT. IN NO EVENT SHALL
* THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS 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.
*
* The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial portions
* of the Software.
*
*/
#ifndef AC_EXP_PARAM_H
#define AC_EXP_PARAM_H
enum
{
/* SPI_PS_INPUT_CNTL_i.OFFSET[0:4] */
AC_EXP_PARAM_OFFSET_0 = 0,
AC_EXP_PARAM_OFFSET_31 = 31,
/* SPI_PS_INPUT_CNTL_i.DEFAULT_VAL[0:1] */
AC_EXP_PARAM_DEFAULT_VAL_0000 = 64,
AC_EXP_PARAM_DEFAULT_VAL_0001,
AC_EXP_PARAM_DEFAULT_VAL_1110,
AC_EXP_PARAM_DEFAULT_VAL_1111,
AC_EXP_PARAM_UNDEFINED = 255, /* deprecated, use AC_EXP_PARAM_DEFAULT_VAL_0000 instead */
};
#endif

View File

@@ -35,6 +35,19 @@
extern "C" {
#endif
enum
{
/* SPI_PS_INPUT_CNTL_i.OFFSET[0:4] */
AC_EXP_PARAM_OFFSET_0 = 0,
AC_EXP_PARAM_OFFSET_31 = 31,
/* SPI_PS_INPUT_CNTL_i.DEFAULT_VAL[0:1] */
AC_EXP_PARAM_DEFAULT_VAL_0000 = 64,
AC_EXP_PARAM_DEFAULT_VAL_0001,
AC_EXP_PARAM_DEFAULT_VAL_1110,
AC_EXP_PARAM_DEFAULT_VAL_1111,
AC_EXP_PARAM_UNDEFINED = 255, /* deprecated, use AC_EXP_PARAM_DEFAULT_VAL_0000 instead */
};
/* Forward declaration of nir_builder so we don't have to include nir_builder.h here */
struct nir_builder;
typedef struct nir_builder nir_builder;

View File

@@ -65,7 +65,6 @@ gfx10_format_table_c = custom_target(
amd_common_files = files(
'ac_binary.c',
'ac_binary.h',
'ac_exp_param.h',
'ac_shader_args.c',
'ac_shader_args.h',
'ac_shader_util.c',

View File

@@ -28,7 +28,7 @@
#include "aco_builder.h"
#include "aco_ir.h"
#include "common/ac_exp_param.h"
#include "common/ac_nir.h"
#include "common/sid.h"
#include "vulkan/radv_descriptor_set.h"

View File

@@ -24,7 +24,7 @@
#include "aco_instruction_selection.h"
#include "common/ac_exp_param.h"
#include "common/ac_nir.h"
#include "common/sid.h"
#include "vulkan/radv_descriptor_set.h"

View File

@@ -25,7 +25,7 @@
/* based on pieces from si_pipe.c and radeon_llvm_emit.c */
#include "ac_llvm_build.h"
#include "ac_exp_param.h"
#include "ac_nir.h"
#include "ac_llvm_util.h"
#include "ac_shader_util.h"
#include "c11/threads.h"

View File

@@ -33,7 +33,7 @@
#include "radv_shader_args.h"
#include "ac_binary.h"
#include "ac_exp_param.h"
#include "ac_nir.h"
#include "ac_llvm_build.h"
#include "ac_nir_to_llvm.h"
#include "ac_shader_abi.h"

View File

@@ -41,7 +41,6 @@
#include "util/debug.h"
#include "ac_binary.h"
#include "ac_exp_param.h"
#include "ac_nir.h"
#include "ac_shader_util.h"
#include "aco_interface.h"

View File

@@ -39,7 +39,6 @@
#include "util/debug.h"
#include "ac_binary.h"
#include "ac_exp_param.h"
#include "ac_nir.h"
#include "ac_rtld.h"
#include "aco_interface.h"

View File

@@ -25,7 +25,7 @@
#include "radv_private.h"
#include "radv_shader.h"
#include "ac_exp_param.h"
#include "ac_nir.h"
static void
mark_sampler_desc(const nir_variable *var, struct radv_shader_info *info)

View File

@@ -22,7 +22,6 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "ac_exp_param.h"
#include "ac_nir.h"
#include "ac_rtld.h"
#include "nir.h"

View File

@@ -22,7 +22,7 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "ac_exp_param.h"
#include "ac_nir.h"
#include "ac_nir_to_llvm.h"
#include "ac_rtld.h"
#include "si_pipe.h"

View File

@@ -26,7 +26,7 @@
#include "si_shader_internal.h"
#include "sid.h"
#include "util/u_memory.h"
#include "ac_exp_param.h"
#include "ac_nir.h"
static LLVMValueRef unpack_sint16(struct si_shader_context *ctx, LLVMValueRef i32, unsigned index)
{

View File

@@ -22,7 +22,7 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "ac_exp_param.h"
#include "ac_nir.h"
#include "ac_sqtt.h"
#include "si_build_pm4.h"
#include "util/u_cpu_detect.h"

View File

@@ -22,7 +22,7 @@
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "ac_exp_param.h"
#include "ac_nir.h"
#include "ac_shader_util.h"
#include "compiler/nir/nir_serialize.h"
#include "nir/tgsi_to_nir.h"