From b7a757b2f7661001ab2f4b5cb664baca21371a20 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 5 May 2021 11:27:32 -0400 Subject: [PATCH] panfrost: Fix typo handling blend types This was right in my head. Fixes: 93a176b6cff ("panfrost: Key blend shaders to the input types") Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/lib/pan_blend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panfrost/lib/pan_blend.c b/src/panfrost/lib/pan_blend.c index a3b0c31..9c7877e 100644 --- a/src/panfrost/lib/pan_blend.c +++ b/src/panfrost/lib/pan_blend.c @@ -562,11 +562,11 @@ pan_blend_create_shader(const struct panfrost_device *dev, /* Saturate integer conversions */ for (int i = 0; i < ARRAY_SIZE(s_src); ++i) { - bool is_float = nir_alu_type_get_base_type(nir_type); + nir_alu_type T = nir_alu_type_get_base_type(nir_type); s_src[i] = nir_convert_with_rounding(&b, s_src[i], src_types[i], nir_type, nir_rounding_mode_undef, - !is_float); + T != nir_type_float); } /* Build a trivial blend shader */ -- 2.7.4