Skip to content

Commit

Permalink
Enable the D3D12 Pixel History feature
Browse files Browse the repository at this point in the history
Removed the developer config option D3D12_PixelHistory
  • Loading branch information
Zorro666 committed Feb 15, 2024
1 parent 226bf70 commit 932caeb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions renderdoc/driver/d3d12/d3d12_pixelhistory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@
#include "d3d12_replay.h"
#include "d3d12_shader_cache.h"

RDOC_EXTERN_CONFIG(bool, D3D12_PixelHistory);

struct D3D12CopyPixelParams
{
// The image being copied from
Expand Down Expand Up @@ -2737,9 +2735,6 @@ rdcarray<PixelModification> D3D12Replay::PixelHistory(rdcarray<EventUsage> event
{
rdcarray<PixelModification> history;

if(!D3D12_PixelHistory())
return history;

if(events.empty())
return history;

Expand Down
4 changes: 1 addition & 3 deletions renderdoc/driver/d3d12/d3d12_replay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@
RDOC_CONFIG(bool, D3D12_HardwareCounters, true,
"Enable support for IHV-specific hardware counters on D3D12.");

RDOC_DEBUG_CONFIG(bool, D3D12_PixelHistory, false, "BETA: Enable D3D12 pixel history support.");

// this is global so we can free it even after D3D12Replay is destroyed
static HMODULE D3D12Lib = NULL;

Expand Down Expand Up @@ -309,7 +307,7 @@ APIProperties D3D12Replay::GetAPIProperties()
(m_DriverInfo.vendor == GPUVendor::AMD || m_DriverInfo.vendor == GPUVendor::Samsung) &&
m_RGP != NULL && m_RGP->DriverSupportsInterop();
ret.shaderDebugging = true;
ret.pixelHistory = D3D12_PixelHistory();
ret.pixelHistory = true;

return ret;
}
Expand Down

0 comments on commit 932caeb

Please sign in to comment.