1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 02:52:10 +01:00

[dxvk] Remove mutex from Dxvk(Graphics|Compute)Pipeline

Not needed anymore because the pipe manager itself won't be
accessed by multiple threads any longer.
This commit is contained in:
Philip Rebohle 2018-03-29 16:36:31 +02:00
parent b286b518c5
commit 05e0f3d52d
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
4 changed files with 1 additions and 6 deletions

View File

@ -41,7 +41,6 @@ namespace dxvk {
VkPipeline DxvkComputePipeline::getPipelineHandle(
const DxvkComputePipelineStateInfo& state) {
std::lock_guard<std::mutex> lock(m_mutex);
for (const PipelineStruct& pair : m_pipelines) {
if (pair.stateVector == state)

View File

@ -74,7 +74,6 @@ namespace dxvk {
Rc<DxvkPipelineLayout> m_layout;
Rc<DxvkShaderModule> m_cs;
std::mutex m_mutex;
std::vector<PipelineStruct> m_pipelines;
VkPipeline m_basePipeline = VK_NULL_HANDLE;

View File

@ -74,7 +74,6 @@ namespace dxvk {
VkPipeline DxvkGraphicsPipeline::getPipelineHandle(
const DxvkGraphicsPipelineStateInfo& state) {
std::lock_guard<std::mutex> lock(m_mutex);
for (const PipelineStruct& pair : m_pipelines) {
if (pair.stateVector == state)

View File

@ -1,7 +1,6 @@
#pragma once
#include <mutex>
#include <unordered_map>
#include <vector>
#include "dxvk_binding.h"
#include "dxvk_constant_state.h"
@ -145,7 +144,6 @@ namespace dxvk {
uint32_t m_vsIn = 0;
uint32_t m_fsOut = 0;
std::mutex m_mutex;
std::vector<PipelineStruct> m_pipelines;
VkPipeline m_basePipeline = VK_NULL_HANDLE;