diff options
author | Daniel Schürmann <[email protected]> | 2020-03-04 17:49:06 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-09 12:29:32 +0000 |
commit | 61fb17e8d74b9b38f54780483157682fe9d3e312 (patch) | |
tree | a2cfd133f709474ffee8c512090cb9bbafefcfc7 /src/amd/vulkan | |
parent | bdd7587414441920743fe476270560722b6beb18 (diff) |
amd: join emit_kill() from radv and radeonsi in ac_nir_to_llvm
Reviewed-by: Marek Olšák <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4047>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4047>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_nir_to_llvm.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/amd/vulkan/radv_nir_to_llvm.c b/src/amd/vulkan/radv_nir_to_llvm.c index 49c91aeb04e..5bce7b156c3 100644 --- a/src/amd/vulkan/radv_nir_to_llvm.c +++ b/src/amd/vulkan/radv_nir_to_llvm.c @@ -880,13 +880,6 @@ load_gs_input(struct ac_shader_abi *abi, return result; } - -static void radv_emit_kill(struct ac_shader_abi *abi, LLVMValueRef visible) -{ - struct radv_shader_context *ctx = radv_shader_context_from_abi(abi); - ac_build_kill_if_false(&ctx->ac, visible); -} - static uint32_t radv_get_sample_pos_offset(uint32_t num_samples) { @@ -4141,7 +4134,6 @@ LLVMModuleRef ac_translate_nir_to_llvm(struct ac_llvm_compiler *ac_llvm, } else if (shaders[i]->info.stage == MESA_SHADER_FRAGMENT) { ctx.abi.load_sample_position = load_sample_position; ctx.abi.load_sample_mask_in = load_sample_mask_in; - ctx.abi.emit_kill = radv_emit_kill; } if (shaders[i]->info.stage == MESA_SHADER_VERTEX && |