rsx/zcull: Rename write_enabled to surface_active to make the meaning clear
This commit is contained in:
@@ -82,7 +82,7 @@ namespace rsx
|
|||||||
{
|
{
|
||||||
// NOTE: Only enable host queries if pixel count is active to save on resources
|
// 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
|
// 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)
|
if (host_queries_active && !data_stream_available)
|
||||||
{
|
{
|
||||||
// Stop
|
// 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)
|
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;
|
zpass_count_enabled = zpass_active;
|
||||||
stats_enabled = zcull_stats_active;
|
stats_enabled = zcull_stats_active;
|
||||||
|
|
||||||
@@ -340,14 +340,14 @@ namespace rsx
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case CELL_GCM_ZCULL_STATS3:
|
case CELL_GCM_ZCULL_STATS3:
|
||||||
value = (value || !write_enabled || !stats_enabled) ? 0 : u16{ umax };
|
value = (value || !surface_active || !stats_enabled) ? 0 : u16{ umax };
|
||||||
break;
|
break;
|
||||||
case CELL_GCM_ZCULL_STATS2:
|
case CELL_GCM_ZCULL_STATS2:
|
||||||
case CELL_GCM_ZCULL_STATS1:
|
case CELL_GCM_ZCULL_STATS1:
|
||||||
case CELL_GCM_ZCULL_STATS:
|
case CELL_GCM_ZCULL_STATS:
|
||||||
default:
|
default:
|
||||||
// Not implemented
|
// Not implemented
|
||||||
value = (write_enabled && stats_enabled) ? -1 : 0;
|
value = (surface_active && stats_enabled) ? -1 : 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ namespace rsx
|
|||||||
protected:
|
protected:
|
||||||
|
|
||||||
bool unit_enabled = false; // The ZCULL unit is on
|
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 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 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
|
bool host_queries_active = false; // The backend/host is gathering Z data for the ZCULL unit
|
||||||
|
|||||||
Reference in New Issue
Block a user