Bug 111212

Summary: gen_builder_meta.hpp:53:117: error: no matching function for call to ‘cast(llvm::FunctionCallee)’
Product: Mesa Reporter: Vinson Lee <vlee>
Component: Drivers/Gallium/swrAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Vinson Lee 2019-07-24 22:50:00 UTC
Build error with llvm-10.0

In file included from ../src/gallium/drivers/swr/rasterizer/jitter/builder.h:161:0,
                 from ../src/gallium/drivers/swr/swr_shader.cpp:35:
src/gallium/drivers/swr/rasterizer/jitter/gen_builder_meta.hpp: In member function ‘llvm::Value* SwrJit::Builder::VGATHERPD(llvm::Value*, llvm::Value*, llvm::Value*, llvm::Value*, llvm::Value*, const llvm::Twine&)’:
src/gallium/drivers/swr/rasterizer/jitter/gen_builder_meta.hpp:53:117: error: no matching function for call to ‘cast(llvm::FunctionCallee)’
     Function* pFunc = cast<Function>(JM()->mpCurrentModule->getOrInsertFunction("meta.intrinsic.VGATHERPD", pFuncTy));
                                                                                                                     ^
Comment 1 Vinson Lee 2019-09-14 06:58:20 UTC
commit 3664a6600eb0efbb4606f0b59730df3088b3b490
Author: Vinson Lee <vlee@freedesktop.org>
Date:   Mon Aug 26 16:16:26 2019 -0700

    swr: Fix build with llvm-9.0 again.
    
    Commit 6f7306c029a7 ("swr/rast: Refactor memory API between rasterizer
    core and swr") unintentionally removed changes for llvm-9.0.
    
    Fixes: 6f7306c029a7 ("swr/rast: Refactor memory API between rasterizer core and swr")
    Fixes: 5dd9ad157005 ("swr/rasterizer: Better implementation of scatter")
    Signed-off-by: Vinson Lee <vlee@freedesktop.org>
    Reviewed-by: Jan Zielinski <jan.zielinski@intel.com>

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.