From d185190222cea1def252b15c1fca3676b50d76b4 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Sun, 14 Jan 2018 20:54:20 +1100 Subject: ac/radeonsi: add lookup_interp_param and load_sample_position to the abi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will enable the interpolateAt builtins to work on the radeonsi nir backend. Reviewed-by: Marek Olšák --- src/amd/common/ac_shader_abi.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/amd/common/ac_shader_abi.h') 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; -- cgit v1.2.3