mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-14 04:30:22 +01:00
rsx/zcull: Rename write_enabled to surface_active to make the meaning clear
This commit is contained in:
parent
f45742df52
commit
c199a96dac
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue