Ignore clear if surface target is set to CELL_GCM_SURFACE_TARGET_NONE
This commit is contained in:
@@ -123,6 +123,8 @@ namespace
|
|||||||
|
|
||||||
void D3D12GSRender::clear_surface(u32 arg)
|
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> start_duration = std::chrono::system_clock::now();
|
||||||
|
|
||||||
std::chrono::time_point<std::chrono::system_clock> rtt_duration_start = 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)
|
void nv4097_clear_surface(u32 arg, GLGSRender* renderer)
|
||||||
{
|
{
|
||||||
//LOG_NOTICE(Log::RSX, "nv4097_clear_surface(0x%x)", arg);
|
//LOG_NOTICE(Log::RSX, "nv4097_clear_surface(0x%x)", arg);
|
||||||
|
if (!rsx::method_registers[NV4097_SET_SURFACE_FORMAT]) return;
|
||||||
|
|
||||||
if ((arg & 0xf3) == 0)
|
if ((arg & 0xf3) == 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -666,8 +666,8 @@ void VKGSRender::clear_surface(u32 mask)
|
|||||||
{
|
{
|
||||||
//TODO: Build clear commands into current renderpass descriptor set
|
//TODO: Build clear commands into current renderpass descriptor set
|
||||||
if (!(mask & 0xF3)) return;
|
if (!(mask & 0xF3)) return;
|
||||||
|
|
||||||
if (m_current_present_image== 0xFFFF) return;
|
if (m_current_present_image== 0xFFFF) return;
|
||||||
|
if (!rsx::method_registers[NV4097_SET_SURFACE_FORMAT]) return;
|
||||||
|
|
||||||
init_buffers();
|
init_buffers();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user