Skip to content

Commit

Permalink
move context state tracking to replay extras
Browse files Browse the repository at this point in the history
do not need this when extras are disabled
  • Loading branch information
megai2 committed Jan 31, 2021
1 parent 82bcf04 commit 35495f0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions d912pxy/d912pxy_replay_extra_handlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ SOFTWARE.
RHA_DECL(barrier, d912pxy_replay_thread_context* context)
{
RHA_BASE(barrier, context);
it->res->setContextState(it->to);
}

RHA_DECL(om_stencilref, d912pxy_replay_thread_context* context)
Expand Down
2 changes: 0 additions & 2 deletions d912pxy/d912pxy_resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ void d912pxy_resource::BTransit(UINT subres, D3D12_RESOURCE_STATES to, D3D12_RES
LOG_DBG_DTDM("rbarrier %016llX to %u from %u", m_res, to, from);

cl->ResourceBarrier(1, &bar);

inContextState = to;
}

void d912pxy_resource::BTransitTo(UINT subres, D3D12_RESOURCE_STATES to, ID3D12GraphicsCommandList * cl)
Expand Down
1 change: 1 addition & 0 deletions d912pxy/d912pxy_resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class d912pxy_resource : public d912pxy_comhandler
static UINT residencyOverride;

D3D12_RESOURCE_STATES getContextState() { return inContextState; }
void setContextState(D3D12_RESOURCE_STATES newState) { inContextState = newState; }

private:
d912pxy_resource_typeid m_tid;
Expand Down

0 comments on commit 35495f0

Please sign in to comment.