This was right in my head.
Fixes:
93a176b6cff ("panfrost: Key blend shaders to the input types")
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9239>
/* 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 */