zink: store num_inlinable_uniforms separately for cs programs
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 29 Mar 2023 12:40:14 +0000 (08:40 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 4 Apr 2023 01:37:41 +0000 (01:37 +0000)
commit4e1668384d58c6fd32950a43707e9622f77bbf89
treeba01c943edbc954943ecc3484ea42b030e146d54
parent517146f5400ac16a27955ac7d59d3e0001abf8af
zink: store num_inlinable_uniforms separately for cs programs

compute is a special case because the zink_shader itself is created
in a thread, which means it cannot be accessed directly at bind time
since it may not have finished creating itself yet

to avoid prematurely waiting on an async fence, the one value needed
at bind time can instead be stored separately

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22266>
src/gallium/drivers/zink/zink_program.c
src/gallium/drivers/zink/zink_types.h