Skip to content

Commit

Permalink
renderpass assert clear
Browse files Browse the repository at this point in the history
  • Loading branch information
SolDev69 committed Jan 13, 2024
1 parent 90bdc79 commit 0c01f28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gallium/drivers/zink/zink_render_pass.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,8 @@ get_render_pass(struct zink_context *ctx)
state.num_rts++;
}
state.have_zsbuf = have_zsbuf;
assert(clears == ctx->rp_clears_enabled);
if(clears != ctx->rp_clears_enabled)
return NULL;
state.clears = clears;
uint32_t hash = hash_render_pass_state(&state);
struct hash_entry *entry = _mesa_hash_table_search_pre_hashed(ctx->render_pass_cache, hash,
Expand Down

0 comments on commit 0c01f28

Please sign in to comment.