nv2a/vk: Ensure queries do not include clears

This commit is contained in:
Matt Borgerson
2024-12-31 01:37:05 -07:00
committed by mborgerson
parent d47fef9467
commit 31db8d04b0
+1 -1
View File
@@ -1442,7 +1442,7 @@ static void begin_draw(PGRAPHState *pg)
assert(r->in_command_buffer);
// Visibility testing
if (pg->zpass_pixel_count_enable) {
if (!pg->clearing && pg->zpass_pixel_count_enable) {
if (r->new_query_needed && r->query_in_flight) {
end_render_pass(r);
end_query(r);