From 5083769fcbc50d21047b077d649e8e052c37afb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 21 Jul 2025 21:07:33 -0400 Subject: [PATCH] nir: renumber nir_move_options for future commits Reviewed-by: Alyssa Rosenzweig Part-of: --- src/compiler/nir/nir.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 940bb6707ea..419a6964034 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -6194,15 +6194,15 @@ bool nir_opt_loop(nir_shader *shader); bool nir_opt_loop_unroll(nir_shader *shader); typedef enum { - nir_move_const_undef = (1 << 0), - nir_move_load_ubo = (1 << 1), - nir_move_load_input = (1 << 2), - nir_move_comparisons = (1 << 3), - nir_move_copies = (1 << 4), - nir_move_load_ssbo = (1 << 5), - nir_move_load_uniform = (1 << 6), - nir_move_alu = (1 << 7), - nir_dont_move_byte_word_vecs = (1 << 8), + nir_move_const_undef = BITFIELD_BIT(0), + nir_move_alu = BITFIELD_BIT(1), + nir_move_copies = BITFIELD_BIT(2), + nir_move_comparisons = BITFIELD_BIT(3), + nir_dont_move_byte_word_vecs = BITFIELD_BIT(4), + nir_move_load_input = BITFIELD_BIT(5), + nir_move_load_ubo = BITFIELD_BIT(6), + nir_move_load_ssbo = BITFIELD_BIT(7), + nir_move_load_uniform = BITFIELD_BIT(8), } nir_move_options; bool nir_can_move_instr(nir_instr *instr, nir_move_options options);