gallivm: fix debug prints for halfs

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15246>
This commit is contained in:
Mike Blumenkrantz 2022-03-04 10:42:59 -05:00 committed by Marge Bot
parent ba18799ca1
commit cf9454bb2a

View file

@ -100,7 +100,7 @@ lp_build_print_value(struct gallivm_state *gallivm,
length = 1;
}
if (type_kind == LLVMFloatTypeKind || type_kind == LLVMDoubleTypeKind) {
if (type_kind == LLVMFloatTypeKind || type_kind == LLVMDoubleTypeKind || type_kind == LLVMHalfTypeKind) {
type_fmt[2] = '.';
type_fmt[3] = '9';
type_fmt[4] = 'g';