mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
zink: zero db offset on batch reset
seems weird this hasn't been caught before cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37068>
This commit is contained in:
parent
a3630c865f
commit
fbddc97b9e
1 changed files with 1 additions and 0 deletions
|
|
@ -1540,6 +1540,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)
|
||||
reinit_db(screen, bs);
|
||||
bs->dd.db_bound = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue