From fafa2995117a13df5356b82fb249cceb8987c184 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 18 Jul 2017 20:44:47 -0700 Subject: [PATCH] ac: fix ac_get_type_size() for doubles Reviewed-by: Dave Airlie --- src/amd/common/ac_llvm_build.c | 1 + 1 file changed, 1 insertion(+) 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: -- 2.30.2