aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/common/ac_shader_abi.h
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2018-01-14 20:54:20 +1100
committerTimothy Arceri <[email protected]>2018-01-31 09:14:07 +1100
commitd185190222cea1def252b15c1fca3676b50d76b4 (patch)
treeff37e983d0ab2132faf3672421c727c520afe4b1 /src/amd/common/ac_shader_abi.h
parent97058168a4bcf7d0dddbb13af02972a0edbcefd4 (diff)
ac/radeonsi: add lookup_interp_param and load_sample_position to the abi
This will enable the interpolateAt builtins to work on the radeonsi nir backend. Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common/ac_shader_abi.h')
-rw-r--r--src/amd/common/ac_shader_abi.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/amd/common/ac_shader_abi.h b/src/amd/common/ac_shader_abi.h
index 9cdfd9d1dfc..d9bb5a1e329 100644
--- a/src/amd/common/ac_shader_abi.h
+++ b/src/amd/common/ac_shader_abi.h
@@ -147,6 +147,13 @@ struct ac_shader_abi {
enum ac_descriptor_type desc_type,
bool image, bool write);
+ LLVMValueRef (*lookup_interp_param)(struct ac_shader_abi *abi,
+ enum glsl_interp_mode interp,
+ unsigned location);
+
+ LLVMValueRef (*load_sample_position)(struct ac_shader_abi *abi,
+ LLVMValueRef sample_id);
+
/* Whether to clamp the shadow reference value to [0,1]on VI. Radeonsi currently
* uses it due to promoting D16 to D32, but radv needs it off. */
bool clamp_shadow_reference;