diff --git a/src/gallium/drivers/zink/zink_render_pass.c b/src/gallium/drivers/zink/zink_render_pass.c index 43143e587f8..3e1dcb8c6f5 100644 --- a/src/gallium/drivers/zink/zink_render_pass.c +++ b/src/gallium/drivers/zink/zink_render_pass.c @@ -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,