mesa: conditionally set constants dirty for atomic counter binds

this is necessary for updating the offset uniforms

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16749>
This commit is contained in:
Mike Blumenkrantz 2022-05-27 13:33:14 -04:00 committed by Marge Bot
parent b3fbd498e0
commit 93d9f086a3
1 changed files with 3 additions and 0 deletions

View File

@ -446,6 +446,9 @@ st_init_driver_flags(struct st_context *st)
ST_NEW_VS_STATE | ST_NEW_TCS_STATE |
ST_NEW_TES_STATE | ST_NEW_GS_STATE |
ST_NEW_FS_STATE | ST_NEW_CS_STATE;
if (!st->has_hw_atomics && st->ctx->Const.ShaderStorageBufferOffsetAlignment > 4)
f->NewAtomicBuffer |= ST_NEW_CONSTANTS;
}
static bool