mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
zink: check for zink_batch_state::ctx before using during descriptor state reset
this is a screen function, so ctx may be null cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37379>
This commit is contained in:
parent
0df1fcd0b3
commit
e64f0414b3
1 changed files with 1 additions and 1 deletions
|
|
@ -1593,7 +1593,7 @@ zink_batch_descriptor_reset(struct zink_screen *screen, struct zink_batch_state
|
|||
if (zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_DB) {
|
||||
bs->dd.db_offset = 0;
|
||||
memset(bs->dd.cur_db_offset, 0, sizeof(bs->dd.cur_db_offset));
|
||||
if (bs->dd.db && bs->dd.db->base.b.width0 < bs->ctx->dd.db.max_db_size * screen->base_descriptor_size)
|
||||
if (bs->dd.db && bs->ctx && bs->dd.db->base.b.width0 < bs->ctx->dd.db.max_db_size * screen->base_descriptor_size)
|
||||
reinit_db(screen, bs);
|
||||
bs->dd.db_bound = false;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue