Transfers the majority of submodules and large externals to CPM, using source archives rather than full Git clones. Not only does this save massive amounts of clone and configure time, but dependencies are grabbed on-demand rather than being required by default. Additionally, CPM will (generally) automatically search for system dependencies, though certain dependencies have options to control this. Testing shows gains ranging from 5x to 10x in terms of overall clone/configure time. Reviewed-on: #143 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
27 lines
949 B
C++
27 lines
949 B
C++
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "shader_recompiler/backend/spirv/emit_spirv_instructions.h"
|
|
#include "shader_recompiler/backend/spirv/spirv_emit_context.h"
|
|
|
|
namespace Shader::Backend::SPIRV {
|
|
|
|
void EmitJoin(EmitContext&) {
|
|
throw NotImplementedException("Join shouldn't be emitted");
|
|
}
|
|
|
|
void EmitDemoteToHelperInvocation(EmitContext& ctx) {
|
|
if (ctx.profile.support_demote_to_helper_invocation) {
|
|
ctx.OpDemoteToHelperInvocationEXT();
|
|
} else {
|
|
const Id kill_label{ctx.OpLabel()};
|
|
const Id impossible_label{ctx.OpLabel()};
|
|
ctx.OpSelectionMerge(impossible_label, spv::SelectionControlMask::MaskNone);
|
|
ctx.OpBranchConditional(ctx.true_value, kill_label, impossible_label);
|
|
ctx.AddLabel(kill_label);
|
|
ctx.OpKill();
|
|
ctx.AddLabel(impossible_label);
|
|
}
|
|
}
|
|
|
|
} // namespace Shader::Backend::SPIRV
|