ac: move ac_exp_param.h to ac_nir.h
authorMarek Olšák <marek.olsak@amd.com>
Mon, 13 Dec 2021 01:20:36 +0000 (20:20 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 5 Jan 2022 12:46:31 +0000 (12:46 +0000)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14266>

15 files changed:
src/amd/common/ac_exp_param.h [deleted file]
src/amd/common/ac_nir.h
src/amd/common/meson.build
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_instruction_selection_setup.cpp
src/amd/llvm/ac_llvm_build.c
src/amd/vulkan/radv_nir_to_llvm.c
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_shader.c
src/amd/vulkan/radv_shader_info.c
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader_llvm.c
src/gallium/drivers/radeonsi/si_shader_llvm_vs.c
src/gallium/drivers/radeonsi/si_state_draw.cpp
src/gallium/drivers/radeonsi/si_state_shaders.cpp

diff --git a/src/amd/common/ac_exp_param.h b/src/amd/common/ac_exp_param.h
deleted file mode 100644 (file)
index ce7a0cc..0000000
+++ /dev/null
@@ -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
index 097c4be..faaf29d 100644 (file)
 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;
index 7900355..ff2788e 100644 (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',
index faddfee..d9e1e1f 100644 (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"
 
index f6c9248..3f4396c 100644 (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"
 
index abec6ed..a727052 100644 (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"
index 27a1637..2dbd0de 100644 (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"
index b05a7ff..6f01251 100644 (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"
index 79b31e2..45c015f 100644 (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"
index cd7da96..8f5d375 100644 (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)
index c96e8c3..53dbf51 100644 (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"
index 857af38..4a1d267 100644 (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"
index e3a5a0e..06b0496 100644 (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)
 {
index e995ca4..114b53f 100644 (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"
index ede6ea2..8bd813c 100644 (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"