zink: ensure db is bound before separate shader update

seems unlikely but who knows

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21246>
This commit is contained in:
Mike Blumenkrantz 2023-02-10 15:40:44 -05:00 committed by Marge Bot
parent bec6087699
commit 651f322091

View file

@ -1051,6 +1051,10 @@ update_separable(struct zink_context *ctx, struct zink_program *pg)
prog->shaders[MESA_SHADER_VERTEX],
prog->shaders[MESA_SHADER_FRAGMENT],
};
if (!bs->dd.db_bound)
zink_batch_bind_db(ctx);
for (unsigned j = 0; j < pg->num_dsl; j++) {
if (!shaders[j]->precompile.dsl)
continue;