diff options
| author | Mai <mai.iam2048@gmail.com> | 2022-12-29 04:48:24 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-29 04:48:24 +0000 |
| commit | 7552deeff4d95d7799c59fe00253a3c1ce86f40b (patch) | |
| tree | d02963cf983422c73c7672e4a5a14f399d0403c2 /Source/Core/VideoCommon/BPStructs.cpp | |
| parent | 82e5f438f954ad822a25eb3261eb9a5d6972ab7f (diff) | |
| parent | 7e55cc9e9044df8382367c5fbcf0dddd88a80201 (diff) | |
Merge pull request #11388 from AdmiralCurtiss/globals-vertexshadermanager
VideoCommon: De-globalize VertexShaderManager class.
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index e7c2c640ff..376249fab9 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -54,7 +54,8 @@ void BPInit() bpmem.bpMask = 0xFFFFFF; } -static void BPWritten(PixelShaderManager& pixel_shader_manager, const BPCmd& bp, +static void BPWritten(PixelShaderManager& pixel_shader_manager, + VertexShaderManager& vertex_shader_manager, const BPCmd& bp, int cycles_into_future) { /* @@ -136,7 +137,7 @@ static void BPWritten(PixelShaderManager& pixel_shader_manager, const BPCmd& bp, case BPMEM_SCISSORTL: // Scissor Rectable Top, Left case BPMEM_SCISSORBR: // Scissor Rectable Bottom, Right case BPMEM_SCISSOROFFSET: // Scissor Offset - VertexShaderManager::SetViewportChanged(); + vertex_shader_manager.SetViewportChanged(); GeometryShaderManager::SetViewportChanged(); return; case BPMEM_LINEPTWIDTH: // Line Width @@ -762,7 +763,8 @@ void LoadBPReg(u8 reg, u32 value, int cycles_into_future) if (reg != BPMEM_BP_MASK) bpmem.bpMask = 0xFFFFFF; - BPWritten(system.GetPixelShaderManager(), bp, cycles_into_future); + BPWritten(system.GetPixelShaderManager(), system.GetVertexShaderManager(), bp, + cycles_into_future); } void LoadBPRegPreprocess(u8 reg, u32 value, int cycles_into_future) |
