mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
i965/blorp: Don't resolve HiZ unless we're reinterpreting
This eliminates 50% of pixels (2M) rendered for a blit in GS:GO. This accounts for 3% of pixels rendered in the game. Total GPU clocks for the first 900 frames of CSGO improves by 1%. Tested-by: Mark Janes <mark.a.janes@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
95cc5438eb
commit
ea7446ba82
1 changed files with 1 additions and 1 deletions
|
|
@ -395,7 +395,7 @@ brw_blorp_blit_miptrees(struct brw_context *brw,
|
|||
/* We do format workarounds for some depth formats so we can't reliably
|
||||
* sample with HiZ. One of these days, we should fix that.
|
||||
*/
|
||||
if (src_aux_usage == ISL_AUX_USAGE_HIZ)
|
||||
if (src_aux_usage == ISL_AUX_USAGE_HIZ && src_mt->format != src_format)
|
||||
src_aux_usage = ISL_AUX_USAGE_NONE;
|
||||
const bool src_clear_supported =
|
||||
src_aux_usage != ISL_AUX_USAGE_NONE && src_mt->format == src_format;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue