mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 01:08:03 +02:00
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:
parent
bb311ce370
commit
e77fe70b1e
1 changed files with 0 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue