nv2a/vk: Clear in separate renderpass for now

This commit is contained in:
Matt Borgerson 2024-08-01 00:37:51 -07:00 committed by mborgerson
parent 31db8d04b0
commit ca42f0f2df
1 changed files with 8 additions and 0 deletions

View File

@ -1456,6 +1456,10 @@ static void begin_draw(PGRAPHState *pg)
end_query(r);
}
if (pg->clearing) {
end_render_pass(r);
}
bool must_bind_pipeline = r->pipeline_binding_changed;
if (!r->in_render_pass) {
@ -1524,6 +1528,10 @@ static void end_draw(PGRAPHState *pg)
assert(r->in_command_buffer);
assert(r->in_render_pass);
if (pg->clearing) {
end_render_pass(r);
}
r->in_draw = false;
// FIXME: We could clear less