zink: switch to u_foreach_bit for ntv image access decorations
no functional changes Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15217>
This commit is contained in:
committed by
Marge Bot
parent
fcdcfd9967
commit
503362f008
@@ -163,9 +163,7 @@ block_label(struct ntv_context *ctx, nir_block *block)
|
||||
static void
|
||||
emit_access_decorations(struct ntv_context *ctx, nir_variable *var, SpvId var_id)
|
||||
{
|
||||
unsigned access = var->data.access;
|
||||
while (access) {
|
||||
unsigned bit = u_bit_scan(&access);
|
||||
u_foreach_bit(bit, var->data.access) {
|
||||
switch (1 << bit) {
|
||||
case ACCESS_COHERENT:
|
||||
/* SpvDecorationCoherent can't be used with vulkan memory model */
|
||||
|
||||
Reference in New Issue
Block a user