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:
parent
b3fbd498e0
commit
93d9f086a3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue