mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 23:08:18 +02:00
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:
parent
61d65c8055
commit
0adcaeced4
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue