Ignore clear if surface target is set to CELL_GCM_SURFACE_TARGET_NONE

This commit is contained in:
kd-11 2016-05-28 13:20:39 +03:00
parent ed93c77433
commit 2bcc755fca
3 changed files with 4 additions and 1 deletions

View File

@ -123,6 +123,8 @@ namespace
void D3D12GSRender::clear_surface(u32 arg)
{
if (!rsx::method_registers[NV4097_SET_SURFACE_FORMAT]) return;
std::chrono::time_point<std::chrono::system_clock> start_duration = std::chrono::system_clock::now();
std::chrono::time_point<std::chrono::system_clock> rtt_duration_start = std::chrono::system_clock::now();

View File

@ -453,6 +453,7 @@ void GLGSRender::on_exit()
void nv4097_clear_surface(u32 arg, GLGSRender* renderer)
{
//LOG_NOTICE(Log::RSX, "nv4097_clear_surface(0x%x)", arg);
if (!rsx::method_registers[NV4097_SET_SURFACE_FORMAT]) return;
if ((arg & 0xf3) == 0)
{

View File

@ -666,8 +666,8 @@ void VKGSRender::clear_surface(u32 mask)
{
//TODO: Build clear commands into current renderpass descriptor set
if (!(mask & 0xF3)) return;
if (m_current_present_image== 0xFFFF) return;
if (!rsx::method_registers[NV4097_SET_SURFACE_FORMAT]) return;
init_buffers();