From: Connor Abbott Date: Wed, 19 Jul 2017 03:44:47 +0000 (-0700) Subject: ac: fix ac_get_type_size() for doubles X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fafa2995117a13df5356b82fb249cceb8987c184;p=mesa.git ac: fix ac_get_type_size() for doubles Reviewed-by: Dave Airlie --- diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index a765c0d7500..f8ae9db3357 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -99,6 +99,7 @@ ac_get_type_size(LLVMTypeRef type) return LLVMGetIntTypeWidth(type) / 8; case LLVMFloatTypeKind: return 4; + case LLVMDoubleTypeKind: case LLVMPointerTypeKind: return 8; case LLVMVectorTypeKind: