diff --git a/rpcs3/Emu/RSX/RSXZCULL.cpp b/rpcs3/Emu/RSX/RSXZCULL.cpp index 3dd9d1a776..293ae5e9dd 100644 --- a/rpcs3/Emu/RSX/RSXZCULL.cpp +++ b/rpcs3/Emu/RSX/RSXZCULL.cpp @@ -82,7 +82,7 @@ namespace rsx { // NOTE: Only enable host queries if pixel count is active to save on resources // Can optionally be enabled for either stats enabled or zpass enabled for accuracy - const bool data_stream_available = zpass_count_enabled; // write_enabled && (zpass_count_enabled || stats_enabled); + const bool data_stream_available = zpass_count_enabled; // surface_active && (zpass_count_enabled || stats_enabled); if (host_queries_active && !data_stream_available) { // Stop @@ -106,7 +106,7 @@ namespace rsx void ZCULL_control::set_status(class ::rsx::thread* ptimer, bool surface_active, bool zpass_active, bool zcull_stats_active, bool flush_queue) { - write_enabled = surface_active; + surface_active = surface_active; zpass_count_enabled = zpass_active; stats_enabled = zcull_stats_active; @@ -340,14 +340,14 @@ namespace rsx } break; case CELL_GCM_ZCULL_STATS3: - value = (value || !write_enabled || !stats_enabled) ? 0 : u16{ umax }; + value = (value || !surface_active || !stats_enabled) ? 0 : u16{ umax }; break; case CELL_GCM_ZCULL_STATS2: case CELL_GCM_ZCULL_STATS1: case CELL_GCM_ZCULL_STATS: default: // Not implemented - value = (write_enabled && stats_enabled) ? -1 : 0; + value = (surface_active && stats_enabled) ? -1 : 0; break; } diff --git a/rpcs3/Emu/RSX/RSXZCULL.h b/rpcs3/Emu/RSX/RSXZCULL.h index 679357b457..d44cba5c95 100644 --- a/rpcs3/Emu/RSX/RSXZCULL.h +++ b/rpcs3/Emu/RSX/RSXZCULL.h @@ -109,7 +109,7 @@ namespace rsx protected: bool unit_enabled = false; // The ZCULL unit is on - bool write_enabled = false; // A surface in the ZCULL-monitored tile region has been loaded for rasterization + bool surface_active = false; // A surface in the ZCULL-monitored tile region has been loaded for rasterization bool stats_enabled = false; // Collecting of ZCULL statistics is enabled (not same as pixels passing Z test!) bool zpass_count_enabled = false; // Collecting of ZPASS statistics is enabled. If this is off, the counter does not increment bool host_queries_active = false; // The backend/host is gathering Z data for the ZCULL unit