jay/to_binary: relax packed float restriction

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41872>
This commit is contained in:
Alyssa Rosenzweig 2026-05-29 12:14:33 -04:00 committed by Marge Bot
parent 61d65c8055
commit 0adcaeced4

View file

@ -217,8 +217,7 @@ to_gen_operand(jay_function *f,
}
/* Packed floats have restrictions on mixed sizes. Use <2>. */
if (jay_type_size_bits(I->type) == 16 &&
jay_type_size_bits(jay_src_type(I, 0)) != 16) {
if (I->type == JAY_TYPE_F16 && jay_type_size_bits(src0_type) != 16) {
assert(jay_num_values(d) == 1 && "must not vectorize mixed float");
R = gen_restride(R, 4, 2, 2);
}