summaryrefslogtreecommitdiff
path: root/src/amd/vulkan/radv_nir_to_llvm.c
diff options
context:
space:
mode:
authorQiang Yu <yuq825@gmail.com>2022-09-16 16:39:41 +0800
committerQiang Yu <yuq825@gmail.com>2022-12-19 09:22:42 +0800
commit796d395ab94666b9e909321112d9d56dd4c126d3 (patch)
tree42284eff4edb419f51f8a69e708757eb6b92290a /src/amd/vulkan/radv_nir_to_llvm.c
parent2fd6e150c30a089259101e894837425c2e4b2652 (diff)
ac,radv,radeonsi: remove unused param of load_sampler_desc abi
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18666>
Diffstat (limited to 'src/amd/vulkan/radv_nir_to_llvm.c')
-rw-r--r--src/amd/vulkan/radv_nir_to_llvm.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c
index 522a2cd4012..15e80e91191 100644
--- a/src/amd/vulkan/radv_nir_to_llvm.c
+++ b/src/amd/vulkan/radv_nir_to_llvm.c
@@ -285,15 +285,11 @@ radv_load_ssbo(struct ac_shader_abi *abi, LLVMValueRef buffer_ptr, bool write, b
}
static LLVMValueRef
-radv_get_sampler_desc(struct ac_shader_abi *abi, unsigned descriptor_set, unsigned base_index,
- unsigned constant_index, LLVMValueRef index,
- enum ac_descriptor_type desc_type, bool image, bool write, bool bindless)
+radv_get_sampler_desc(struct ac_shader_abi *abi, LLVMValueRef index,
+ enum ac_descriptor_type desc_type)
{
struct radv_shader_context *ctx = radv_shader_context_from_abi(abi);
- if (image && desc_type == AC_DESC_FMASK)
- return NULL;
-
/* 3 plane formats always have same size and format for plane 1 & 2, so
* use the tail from plane 1 so that we can store only the first 16 bytes
* of the last plane. */