mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 20:15:27 +00:00
Ignore clear if surface target is set to CELL_GCM_SURFACE_TARGET_NONE
This commit is contained in:
parent
ed93c77433
commit
2bcc755fca
3 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue