diff --git a/src/gallium/auxiliary/gallivm/lp_bld_printf.c b/src/gallium/auxiliary/gallivm/lp_bld_printf.c index aa52e0387ba..4db2c094231 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_printf.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_printf.c @@ -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';