video_core: Remove unused variables
Silences several compiler warnings about unused variables.
This commit is contained in:
parent
ad0b295125
commit
e17fb5ee97
8 changed files with 5 additions and 33 deletions
|
@ -1260,13 +1260,6 @@ std::string ARBDecompiler::Visit(const Node& node) {
|
|||
return "{0, 0, 0, 0}.x";
|
||||
}
|
||||
|
||||
const auto buffer_index = [this, &abuf]() -> std::string {
|
||||
if (stage != ShaderType::Geometry) {
|
||||
return "";
|
||||
}
|
||||
return fmt::format("[{}]", Visit(abuf->GetBuffer()));
|
||||
};
|
||||
|
||||
const Attribute::Index index = abuf->GetIndex();
|
||||
const u32 element = abuf->GetElement();
|
||||
const char swizzle = Swizzle(element);
|
||||
|
@ -1375,7 +1368,7 @@ std::string ARBDecompiler::Visit(const Node& node) {
|
|||
return {};
|
||||
}
|
||||
|
||||
if (const auto cmt = std::get_if<CommentNode>(&*node)) {
|
||||
if ([[maybe_unused]] const auto cmt = std::get_if<CommentNode>(&*node)) {
|
||||
// Uncommenting this will generate invalid code. GLASM lacks comments.
|
||||
// AddLine("// {}", cmt->GetText());
|
||||
return {};
|
||||
|
|
|
@ -237,7 +237,6 @@ std::unique_ptr<Shader> Shader::CreateStageFromMemory(
|
|||
const ShaderParameters& params, Maxwell::ShaderProgram program_type, ProgramCode code,
|
||||
ProgramCode code_b, VideoCommon::Shader::AsyncShaders& async_shaders, VAddr cpu_addr) {
|
||||
const auto shader_type = GetShaderType(program_type);
|
||||
const std::size_t size_in_bytes = code.size() * sizeof(u64);
|
||||
|
||||
auto& gpu = params.system.GPU();
|
||||
gpu.ShaderNotify().MarkSharderBuilding();
|
||||
|
@ -287,8 +286,6 @@ std::unique_ptr<Shader> Shader::CreateStageFromMemory(
|
|||
|
||||
std::unique_ptr<Shader> Shader::CreateKernelFromMemory(const ShaderParameters& params,
|
||||
ProgramCode code) {
|
||||
const std::size_t size_in_bytes = code.size() * sizeof(u64);
|
||||
|
||||
auto& gpu = params.system.GPU();
|
||||
gpu.ShaderNotify().MarkSharderBuilding();
|
||||
|
||||
|
|
|
@ -1952,10 +1952,6 @@ private:
|
|||
return {fmt::format("({} != 0)", carry), Type::Bool};
|
||||
}
|
||||
|
||||
Expression LogicalFIsNan(Operation operation) {
|
||||
return GenerateUnary(operation, "isnan", Type::Bool, Type::Float);
|
||||
}
|
||||
|
||||
Expression LogicalAssign(Operation operation) {
|
||||
const Node& dest = operation[0];
|
||||
const Node& src = operation[1];
|
||||
|
@ -2771,15 +2767,6 @@ private:
|
|||
return std::min<u32>(device.GetMaxVaryings(), Maxwell::NumVaryings);
|
||||
}
|
||||
|
||||
bool IsRenderTargetEnabled(u32 render_target) const {
|
||||
for (u32 component = 0; component < 4; ++component) {
|
||||
if (header.ps.IsColorComponentOutputEnabled(render_target, component)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const Device& device;
|
||||
const ShaderIR& ir;
|
||||
const Registry& registry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue