nir_lower_ubo_vec4: Delete an invalid assert

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>
This commit is contained in:
Jesse Natalie 2023-05-22 09:52:21 -07:00 committed by Marge Bot
parent bb311ce370
commit e77fe70b1e

View 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,