pan/bi: Allow vec16 in bi_print_swizzle()
Ideally we should choose "abcd" instead of "xyzw" when accessing a vector that has more than 4 components, but bi_instruction does not provide this information, so let's keep things simple for now. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7530>
This commit is contained in:
parent
55cb921f92
commit
38bebba18a
|
@ -165,8 +165,8 @@ bi_print_swizzle(bi_instruction *ins, unsigned src, FILE *fp)
|
|||
fprintf(fp, ".");
|
||||
|
||||
for (unsigned u = 0; u < bi_get_component_count(ins, src); ++u) {
|
||||
assert(ins->swizzle[src][u] < 4);
|
||||
fputc("xyzw"[ins->swizzle[src][u]], fp);
|
||||
assert(ins->swizzle[src][u] < 16);
|
||||
fputc("xyzwefghijklmnop"[ins->swizzle[src][u]], fp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue