1
0
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:
Philip Rebohle 2019-07-23 12:34:48 +02:00
parent 00cf2a20a3
commit 70294aac44
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
3 changed files with 5 additions and 9 deletions

View File

@ -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:

View File

@ -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);

View File

@ -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: