[D3D12] Display whether ROV is actually used in the title

This commit is contained in:
Triang3l
2018-10-17 17:53:37 +03:00
parent f5a90faeab
commit 1860bc6a59
5 changed files with 33 additions and 35 deletions

View File

@@ -9,8 +9,6 @@
#include "xenia/gpu/d3d12/render_target_cache.h"
#include <gflags/gflags.h>
#include <algorithm>
#include <cmath>
#include <cstring>
@@ -25,10 +23,6 @@
#include "xenia/gpu/texture_util.h"
#include "xenia/ui/d3d12/d3d12_util.h"
DEFINE_bool(d3d12_rov, false,
"Use rasterizer-ordered views for render target emulation where "
"available (experimental and currently largely unimplemented).");
namespace xe {
namespace gpu {
namespace d3d12 {
@@ -336,14 +330,6 @@ void RenderTargetCache::ClearCache() {
}
}
bool RenderTargetCache::IsROVUsedForEDRAM() const {
if (!FLAGS_d3d12_rov) {
return false;
}
auto provider = command_processor_->GetD3D12Context()->GetD3D12Provider();
return provider->AreRasterizerOrderedViewsSupported();
}
void RenderTargetCache::BeginFrame() {
ClearBindings();
@@ -352,7 +338,7 @@ void RenderTargetCache::BeginFrame() {
}
bool RenderTargetCache::UpdateRenderTargets(const D3D12Shader* pixel_shader) {
if (IsROVUsedForEDRAM()) {
if (command_processor_->IsROVUsedForEDRAM()) {
return true;
}