diff options
-rw-r--r-- | src/intel/compiler/brw_nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index c5646ebd509..6c6e72208ac 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -976,7 +976,7 @@ brw_nir_apply_sampler_key(nir_shader *nir, if (key_tex->swizzles[s] == SWIZZLE_NOOP) continue; - tex_options.swizzle_result |= (1 << s); + tex_options.swizzle_result |= BITFIELD_BIT(s); for (unsigned c = 0; c < 4; c++) tex_options.swizzles[s][c] = GET_SWZ(key_tex->swizzles[s], c); } |