1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

texture_cache: fix some warnings in AUDIT

This commit is contained in:
Nekotekina 2021-01-18 13:49:59 +03:00
parent e07484f057
commit 8a2a76da1e

View File

@ -590,7 +590,7 @@ namespace rsx
// Sanity checks
AUDIT(exclusion_range.is_page_range());
AUDIT(data.cause.is_read() && !excluded->is_flushable() || data.cause.skip_fbos() || !exclusion_range.overlaps(data.fault_range));
AUDIT((data.cause.is_read() && !excluded->is_flushable()) || data.cause.skip_fbos() || !exclusion_range.overlaps(data.fault_range));
// Apply exclusion
ranges_to_unprotect.exclude(exclusion_range);
@ -932,7 +932,7 @@ namespace rsx
else
{
// This is a read and all overlapping sections were RO and were excluded (except for cause == superseded_by_fbo)
AUDIT(cause.skip_fbos() || cause.is_read() && !result.sections_to_exclude.empty());
AUDIT(cause.skip_fbos() || (cause.is_read() && !result.sections_to_exclude.empty()));
// We did not handle this violation
result.clear_sections();