Skip to content
Commit 93844147 authored by Faith Ekstrand's avatar Faith Ekstrand Committed by Juan A. Suarez Romero
Browse files

nir/constant_folding: Fix source bit size logic



Instead of looking at input_sizes[i] which contains the number of
components for each source, we look at the bit size of input_types[i].
This fixes a regression in the 1-bit boolean series though I have no
idea how we haven't seen it before now.

Fixes: 35baee5d "nir/constant_folding: fix incorrect bit-size check"
Fixes: 9076c4e2 "nir: update opcode definitions for different bit sizes"
Reviewed-by: default avatarEric Anholt <eric@anholt.net>
Reviewed-by: default avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: default avatarBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
(cherry picked from commit 3595a0ab)
[Juan A. Suarez: resolve trivial conflicts]

Conflicts:
	src/compiler/nir/nir_opt_constant_folding.c
parent beec28d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment