diff --git a/src/compiler/nir/nir_lower_ubo_vec4.c b/src/compiler/nir/nir_lower_ubo_vec4.c index c0f5b1ca4ff..90885b133b4 100644 --- a/src/compiler/nir/nir_lower_ubo_vec4.c +++ b/src/compiler/nir/nir_lower_ubo_vec4.c @@ -134,7 +134,7 @@ nir_lower_ubo_vec4_lower(nir_builder *b, nir_instr *instr, void *data) result = nir_vector_extract(b, result, component); } else if (align_mul == 8 && - align_offset + chan_size_bytes * intr->num_components <= 16) { + align_offset + chan_size_bytes * intr->num_components <= 8) { /* Special case: Loading small vectors from offset % 8 == 0 can be done * with just one load and one bcsel. */