mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxvk] Disable resource tracking for DxvkPipeline objects
This isn't necessary at all since these objects are persistent.
This commit is contained in:
parent
00cf2a20a3
commit
70294aac44
@ -34,7 +34,7 @@ namespace dxvk {
|
||||
* pipelines do not need to be recompiled against any sort
|
||||
* of pipeline state.
|
||||
*/
|
||||
class DxvkComputePipeline : public DxvkResource {
|
||||
class DxvkComputePipeline : public RcObject {
|
||||
|
||||
public:
|
||||
|
||||
|
@ -3412,12 +3412,9 @@ namespace dxvk {
|
||||
m_state.cp.state.bsBindingMask.clear();
|
||||
m_state.cp.pipeline = m_pipeMgr->createComputePipeline(m_state.cp.cs.shader);
|
||||
|
||||
if (m_state.cp.pipeline != nullptr) {
|
||||
m_cmd->trackResource(m_state.cp.pipeline);
|
||||
|
||||
if (m_state.cp.pipeline->layout()->pushConstRange().size)
|
||||
m_flags.set(DxvkContextFlag::DirtyPushConstants);
|
||||
}
|
||||
if (m_state.cp.pipeline != nullptr
|
||||
&& m_state.cp.pipeline->layout()->pushConstRange().size)
|
||||
m_flags.set(DxvkContextFlag::DirtyPushConstants);
|
||||
}
|
||||
}
|
||||
|
||||
@ -3471,7 +3468,6 @@ namespace dxvk {
|
||||
|
||||
if (m_state.gp.pipeline != nullptr) {
|
||||
m_state.gp.flags = m_state.gp.pipeline->flags();
|
||||
m_cmd->trackResource(m_state.gp.pipeline);
|
||||
|
||||
if (m_state.gp.pipeline->layout()->pushConstRange().size)
|
||||
m_flags.set(DxvkContextFlag::DirtyPushConstants);
|
||||
|
@ -186,7 +186,7 @@ namespace dxvk {
|
||||
* recompile the graphics pipeline against a given
|
||||
* pipeline state vector.
|
||||
*/
|
||||
class DxvkGraphicsPipeline : public DxvkResource {
|
||||
class DxvkGraphicsPipeline : public RcObject {
|
||||
|
||||
public:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user