Skip to content

Commit

Permalink
nv2a/vk: Report dirty if no pipeline is bound
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Nov 14, 2024
1 parent 307eabc commit 98a03e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hw/xbox/nv2a/pgraph/vk/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,10 +628,9 @@ static bool check_render_pass_dirty(PGRAPHState *pg)
static bool check_pipeline_dirty(PGRAPHState *pg)
{
PGRAPHVkState *r = pg->vk_renderer_state;
assert(r->pipeline_binding);

if (r->shader_bindings_changed || r->texture_bindings_changed ||
check_render_pass_dirty(pg)) {
if (!r->pipeline_binding || r->shader_bindings_changed ||
r->texture_bindings_changed || check_render_pass_dirty(pg)) {
return true;
}

Expand Down

0 comments on commit 98a03e9

Please sign in to comment.