mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-31 14:35:19 +00:00
* spirv: Simplify shared memory handling * spirv: Ignore clip plane * spirv: Fix image offsets * ir_pass: Implement shared memory lowering pass * NVIDIA doesn't like using shared mem in fragment shader and softlocks driver * spirv: Add log for ignoring pos1
20 lines
641 B
C++
20 lines
641 B
C++
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "shader_recompiler/ir/basic_block.h"
|
|
#include "shader_recompiler/ir/program.h"
|
|
|
|
namespace Shader::Optimization {
|
|
|
|
void SsaRewritePass(IR::BlockList& program);
|
|
void IdentityRemovalPass(IR::BlockList& program);
|
|
void DeadCodeEliminationPass(IR::Program& program);
|
|
void ConstantPropagationPass(IR::BlockList& program);
|
|
void ResourceTrackingPass(IR::Program& program);
|
|
void CollectShaderInfoPass(IR::Program& program);
|
|
void LowerSharedMemToRegisters(IR::Program& program);
|
|
|
|
} // namespace Shader::Optimization
|