nir_lower_ubo_vec4: Delete an invalid assert
authorJesse Natalie <jenatali@microsoft.com>
Mon, 22 May 2023 16:52:21 +0000 (09:52 -0700)
committerMarge Bot <emma+marge@anholt.net>
Tue, 13 Jun 2023 00:43:36 +0000 (00:43 +0000)
This pass handles 16-component 8-bit loads, 8-component 16-bit loads,
and 2-component 64-bit loads. The number of components for the fallback
case doesn't need to be 4.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23173>

src/compiler/nir/nir_lower_ubo_vec4.c

index 17937ac..ba7c29e 100644 (file)
@@ -149,7 +149,6 @@ nir_lower_ubo_vec4_lower(nir_builder *b, nir_instr *instr, void *data)
       /* General fallback case: Per-result-channel bcsel-based extraction
        * from two separate vec4 loads.
        */
-      assert(num_components == 4);
       nir_ssa_def *next_vec4_offset = nir_iadd_imm(b, vec4_offset, 1);
       nir_intrinsic_instr *next_load = create_load(b, intr->src[0].ssa, next_vec4_offset,
                                                    intr->dest.ssa.bit_size,