summaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_shader_abi.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2018-03-14 10:19:45 +1000
committerDave Airlie <[email protected]>2018-03-14 11:18:54 +1000
commit4f0c89d66c570e82d832e2e49227517302e271a2 (patch)
tree8d3a3547b46c9eebf193f943428e317b2ca63a87 /src/amd/common/ac_shader_abi.h
parentf9de2d409bf4f068a99d358d592d96ab4803f7fb (diff)
ac/nir: pass the nir variable through tcs loading.
I was going to have to add another parameter to this monster, so we should just pass the nir_variable in, I can't find any reason this would be a bad idea. This needed for the next fix. Fixes: 94f9591995 (radv/ac: add support for TCS/TES inputs/outputs.) Reviewed-by: Bas Nieuwenhuizen <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/common/ac_shader_abi.h')
-rw-r--r--src/amd/common/ac_shader_abi.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/amd/common/ac_shader_abi.h b/src/amd/common/ac_shader_abi.h
index 901e49b1f97..0737d697ffa 100644
--- a/src/amd/common/ac_shader_abi.h
+++ b/src/amd/common/ac_shader_abi.h
@@ -28,6 +28,8 @@
#include "compiler/shader_enums.h"
+struct nir_variable;
+
#define AC_LLVM_MAX_OUTPUTS (VARYING_SLOT_VAR31 + 1)
enum ac_descriptor_type {
@@ -111,15 +113,11 @@ struct ac_shader_abi {
bool load_inputs);
void (*store_tcs_outputs)(struct ac_shader_abi *abi,
+ const struct nir_variable *var,
LLVMValueRef vertex_index,
LLVMValueRef param_index,
unsigned const_index,
- unsigned location,
- unsigned driver_location,
LLVMValueRef src,
- unsigned component,
- bool is_patch,
- bool is_compact,
unsigned writemask);
LLVMValueRef (*load_tess_coord)(struct ac_shader_abi *abi);