Skip to content

Commit

Permalink
Revert "[d3d11] Fix ref counting for D3D11CommandList"
Browse files Browse the repository at this point in the history
This reverts commit 55bae45.
  • Loading branch information
doitsujin committed Oct 27, 2019
1 parent fc0ede0 commit a2b6294
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
16 changes: 0 additions & 16 deletions src/d3d11/d3d11_cmdlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,6 @@ namespace dxvk {
}


ULONG STDMETHODCALLTYPE D3D11CommandList::AddRef() {
ULONG refCount = m_refCount++;
if (!refCount)
m_device->AddRef();
return refCount + 1;
}


ULONG STDMETHODCALLTYPE D3D11CommandList::Release() {
ULONG refCount = --m_refCount;
if (!refCount)
m_device->Release();
return refCount;
}


HRESULT STDMETHODCALLTYPE D3D11CommandList::QueryInterface(REFIID riid, void** ppvObject) {
if (ppvObject == nullptr)
return E_POINTER;
Expand Down
8 changes: 1 addition & 7 deletions src/d3d11/d3d11_cmdlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace dxvk {

class D3D11CommandList : public D3D11DeviceChild<ID3D11CommandList, NoWrapper> {
class D3D11CommandList : public D3D11DeviceChild<ID3D11CommandList> {

public:

Expand All @@ -14,10 +14,6 @@ namespace dxvk {

~D3D11CommandList();

ULONG STDMETHODCALLTYPE AddRef();

ULONG STDMETHODCALLTYPE Release();

HRESULT STDMETHODCALLTYPE QueryInterface(
REFIID riid,
void** ppvObject) final;
Expand Down Expand Up @@ -46,8 +42,6 @@ namespace dxvk {
std::atomic<bool> m_submitted = { false };
std::atomic<bool> m_warned = { false };

std::atomic<uint32_t> m_refCount = { 0u };

void MarkSubmitted();

};
Expand Down

0 comments on commit a2b6294

Please sign in to comment.