mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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:
parent
b286b518c5
commit
05e0f3d52d
@ -41,7 +41,6 @@ namespace dxvk {
|
|||||||
|
|
||||||
VkPipeline DxvkComputePipeline::getPipelineHandle(
|
VkPipeline DxvkComputePipeline::getPipelineHandle(
|
||||||
const DxvkComputePipelineStateInfo& state) {
|
const DxvkComputePipelineStateInfo& state) {
|
||||||
std::lock_guard<std::mutex> lock(m_mutex);
|
|
||||||
|
|
||||||
for (const PipelineStruct& pair : m_pipelines) {
|
for (const PipelineStruct& pair : m_pipelines) {
|
||||||
if (pair.stateVector == state)
|
if (pair.stateVector == state)
|
||||||
|
@ -74,7 +74,6 @@ namespace dxvk {
|
|||||||
Rc<DxvkPipelineLayout> m_layout;
|
Rc<DxvkPipelineLayout> m_layout;
|
||||||
Rc<DxvkShaderModule> m_cs;
|
Rc<DxvkShaderModule> m_cs;
|
||||||
|
|
||||||
std::mutex m_mutex;
|
|
||||||
std::vector<PipelineStruct> m_pipelines;
|
std::vector<PipelineStruct> m_pipelines;
|
||||||
|
|
||||||
VkPipeline m_basePipeline = VK_NULL_HANDLE;
|
VkPipeline m_basePipeline = VK_NULL_HANDLE;
|
||||||
|
@ -74,7 +74,6 @@ namespace dxvk {
|
|||||||
|
|
||||||
VkPipeline DxvkGraphicsPipeline::getPipelineHandle(
|
VkPipeline DxvkGraphicsPipeline::getPipelineHandle(
|
||||||
const DxvkGraphicsPipelineStateInfo& state) {
|
const DxvkGraphicsPipelineStateInfo& state) {
|
||||||
std::lock_guard<std::mutex> lock(m_mutex);
|
|
||||||
|
|
||||||
for (const PipelineStruct& pair : m_pipelines) {
|
for (const PipelineStruct& pair : m_pipelines) {
|
||||||
if (pair.stateVector == state)
|
if (pair.stateVector == state)
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <mutex>
|
#include <vector>
|
||||||
#include <unordered_map>
|
|
||||||
|
|
||||||
#include "dxvk_binding.h"
|
#include "dxvk_binding.h"
|
||||||
#include "dxvk_constant_state.h"
|
#include "dxvk_constant_state.h"
|
||||||
@ -145,7 +144,6 @@ namespace dxvk {
|
|||||||
uint32_t m_vsIn = 0;
|
uint32_t m_vsIn = 0;
|
||||||
uint32_t m_fsOut = 0;
|
uint32_t m_fsOut = 0;
|
||||||
|
|
||||||
std::mutex m_mutex;
|
|
||||||
std::vector<PipelineStruct> m_pipelines;
|
std::vector<PipelineStruct> m_pipelines;
|
||||||
|
|
||||||
VkPipeline m_basePipeline = VK_NULL_HANDLE;
|
VkPipeline m_basePipeline = VK_NULL_HANDLE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user